diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-28 22:17:27 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-28 22:17:27 +0100 |
commit | 3202be9ceac81d8e10e432ffbfea774f6240788b (patch) | |
tree | 48875bc646d0517c8521d5d2dd47296204f34d9d | |
parent | 24c9518d8af34c297c4edfaa77d4fc3a0c725f19 (diff) |
Fix some compilation issues
-rw-r--r-- | cbs.h | 2 | ||||
-rw-r--r-- | make.c | 10 |
2 files changed, 3 insertions, 9 deletions
@@ -722,7 +722,7 @@ _rebuild(char *src) return; } - cmdadd(&cmd, "cc"); + cmdadd(&cmd, "cc", "-std=c2x"); #ifdef CBS_PTHREAD cmdadd(&cmd, "-lpthread"); #endif @@ -1,10 +1,4 @@ -#if __has_include(<features.h>) -# include <features.h> -# ifdef __GLIBC__ -# define _POSIX_C_SOURCE 200809L -# endif -#endif - +#define _GNU_SOURCE #include <errno.h> #include <getopt.h> #include <limits.h> @@ -112,7 +106,7 @@ main(int argc, char **argv) CMDPRC(c); } - if (foutdated("./grab", "src/grab.c", "src/compat.h", "src/da.h", + if (foutdated("./grab", "src/grab.c", "src/da.h", "vendor/librune/librune.a")) { env_or_default(&sv, "CC", CC); |