From 20c6889f9ddcd564bc6b3fdd7cb448b756b0465a Mon Sep 17 00:00:00 2001 From: Glen Wiley Date: Mon, 2 Jun 2014 11:40:58 -0400 Subject: [PATCH] added _BSD_SOURCE for linux to solve some lingering compile issues --- configure | 4 +--- configure.ac | 4 +--- src/convert.c | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 8916c159..2df96379 100755 --- a/configure +++ b/configure @@ -3248,9 +3248,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac case "$host_os" in - linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to - # pick up strdup() declaration - # in + linux* ) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from ;; diff --git a/configure.ac b/configure.ac index 689e0975..c625078a 100644 --- a/configure.ac +++ b/configure.ac @@ -45,9 +45,7 @@ AC_PROG_CPP # Checks for programs. AC_CANONICAL_HOST case "$host_os" in - linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to - # pick up strdup() declaration - # in + linux* ) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from ;; diff --git a/src/convert.c b/src/convert.c index 8fad6e10..97510cea 100644 --- a/src/convert.c +++ b/src/convert.c @@ -33,6 +33,7 @@ */ #include +#include #include #include #include