aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-05 11:24:55 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-05 11:39:01 +0200
commitfac1f3c95b4be50332d06fcb1d1d1e9d757f9423 (patch)
tree6d9bc143b450904ada144652fe0b5f5b79633559
parentee11eeda3cbebf45b573a236ecdfe62ebcd3859e (diff)
downloadvis-fac1f3c95b4be50332d06fcb1d1d1e9d757f9423.tar.gz
vis-fac1f3c95b4be50332d06fcb1d1d1e9d757f9423.tar.xz
build: add -D__BSD_VISIBLE=1 to default CFLAGS for FreeBSD
SIGWINCH is not part of POSIX. In contrast to the other BSD variants, FreeBSD does not expose it when defining _BSD_SOURCE. This is probably not the 'correct' solution, but seems to work for now. Instead of defining it globally it might have been better to add the necessary #define to the only source file making use of SIGWINCH. Close #302
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 9e45365..951e67e 100755
--- a/configure
+++ b/configure
@@ -209,9 +209,10 @@ LDFLAGS_STD="-lc"
OS=$(uname)
case "$OS" in
-*BSD) CFLAGS_STD="$CFLAGS_STD -D_BSD_SOURCE" ;;
-Darwin) CFLAGS_STD="$CFLAGS_STD -D_DARWIN_C_SOURCE" ;;
-AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;;
+FreeBSD) CFLAGS_STD="$CFLAGS_STD -D_BSD_SOURCE -D__BSD_VISIBLE=1" ;;
+*BSD) CFLAGS_STD="$CFLAGS_STD -D_BSD_SOURCE" ;;
+Darwin) CFLAGS_STD="$CFLAGS_STD -D_DARWIN_C_SOURCE" ;;
+AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;;
esac
tryflag CFLAGS -pipe