summaryrefslogtreecommitdiff
path: root/jni/iodine/src/osflags
diff options
context:
space:
mode:
Diffstat (limited to 'jni/iodine/src/osflags')
-rwxr-xr-xjni/iodine/src/osflags13
1 files changed, 11 insertions, 2 deletions
diff --git a/jni/iodine/src/osflags b/jni/iodine/src/osflags
index 787ffaa..9eda8f0 100755
--- a/jni/iodine/src/osflags
+++ b/jni/iodine/src/osflags
@@ -17,17 +17,26 @@ link)
echo '-lws2_32 -liphlpapi';
;;
Linux)
- [ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
+ FLAGS="";
+ [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
+ [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
+ echo $FLAGS;
;;
esac
;;
cflags)
case $1 in
+ windows32)
+ echo '-DWINVER=0x0501';
+ ;;
BeOS)
echo '-Dsocklen_t=int';
;;
Linux)
- [ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
+ FLAGS="-D_GNU_SOURCE"
+ [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
+ [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
+ echo $FLAGS;
;;
esac
;;