Fix compile on Darwin (hopefully)

This commit is contained in:
Erik Ekman 2015-06-28 22:52:33 +02:00
parent b4e9148df8
commit e7d253b1c1
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ cflags)
BeOS) BeOS)
echo '-Dsocklen_t=int'; echo '-Dsocklen_t=int';
;; ;;
Darwin)
echo '-D__APPLE_USE_RFC_3542';
;;
Linux) Linux)
FLAGS="-D_GNU_SOURCE" FLAGS="-D_GNU_SOURCE"
[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON"; [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";