aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-28 22:17:27 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-28 22:17:27 +0100
commit3202be9ceac81d8e10e432ffbfea774f6240788b (patch)
tree48875bc646d0517c8521d5d2dd47296204f34d9d
parent24c9518d8af34c297c4edfaa77d4fc3a0c725f19 (diff)
Fix some compilation issues
-rw-r--r--cbs.h2
-rw-r--r--make.c10
2 files changed, 3 insertions, 9 deletions
diff --git a/cbs.h b/cbs.h
index bcf82df..0c4fdd7 100644
--- a/cbs.h
+++ b/cbs.h
@@ -722,7 +722,7 @@ _rebuild(char *src)
return;
}
- cmdadd(&cmd, "cc");
+ cmdadd(&cmd, "cc", "-std=c2x");
#ifdef CBS_PTHREAD
cmdadd(&cmd, "-lpthread");
#endif
diff --git a/make.c b/make.c
index 469cc98..2af70e1 100644
--- a/make.c
+++ b/make.c
@@ -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);