aboutsummaryrefslogtreecommitdiff
path: root/scripts/cflags.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cflags.sh')
-rwxr-xr-xscripts/cflags.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/cflags.sh b/scripts/cflags.sh
new file mode 100755
index 0000000..bc8e3a8
--- /dev/null
+++ b/scripts/cflags.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+Linux_cflags()
+{
+ echo -D_GNU_SOURCE
+}
+
+FreeBSD_cflags()
+{
+ echo -D_BSD_SOURCE
+}
+
+$(uname)_cflags
+