From fac1f3c95b4be50332d06fcb1d1d1e9d757f9423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 5 May 2016 11:24:55 +0200 Subject: 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 --- configure | 7 ++++--- 1 file 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 -- cgit v1.2.3