summaryrefslogtreecommitdiff
path: root/jni/iodine/src/osflags
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
commit5d8801d4687035ae45143f0f3bc3eeaf75dc17ec (patch)
treebf4395fd5938eb1865ba90b6e52e169d727d9404 /jni/iodine/src/osflags
parent1251ce0d7cf2619f9b41637dcb88bebb66e54fb3 (diff)
downloadandiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.tar.gz
andiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.zip
Upgrade code to iodine 0.7.0 and improve logging
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
;;