diff --git a/Makefile b/Makefile index 12f3f65..e61a893 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ #SANI=-fsanitize=address -fno-omit-frame-pointer CC ?= cc -CFLAGS += -D_POSIX_C_SOURCE=200809L -std=c99 -Wall -Wno-missing-braces -g -O $(SANI) -LDFLAGS += -lm $(SANI) +CFLAGS += -std=c99 -Wall -Wno-missing-braces -g -O -I/usr/local/include $(SANI) +LDFLAGS += -lm -linotify -L/usr/local/lib $(SANI) TARGET = chiaharvestgraph SRC = chiaharvestgraph.c grapher.c diff --git a/chiaharvestgraph.c b/chiaharvestgraph.c index 45d72c2..098529e 100644 --- a/chiaharvestgraph.c +++ b/chiaharvestgraph.c @@ -3,6 +3,10 @@ // (c)2021 by Abraham Stolk. // XCH Donations: xch1zfgqfqfdse3e2x2z9lscm6dx9cvd5j2jjc7pdemxjqp0xp05xzps602592 +#ifdef __GLIBC__ +# define _POSIX_C_SOURCE 200809L +#endif + #include #include #include diff --git a/grapher.c b/grapher.c index 61bee5f..d6f3853 100644 --- a/grapher.c +++ b/grapher.c @@ -2,6 +2,10 @@ // // by Abraham Stolk. +#ifdef __GLIBC__ +# define _POSIX_C_SOURCE 200809L +#endif + #include #include #include