diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-05 11:24:55 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-05 11:39:01 +0200 |
| commit | fac1f3c95b4be50332d06fcb1d1d1e9d757f9423 (patch) | |
| tree | 6d9bc143b450904ada144652fe0b5f5b79633559 | |
| parent | ee11eeda3cbebf45b573a236ecdfe62ebcd3859e (diff) | |
| download | vis-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-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
