Merge pull request #145 from sureshsundriyal/wip

Let BSD definitions take precedence.
This commit is contained in:
Suresh Sundriyal 2015-03-24 23:03:07 -07:00
commit 82f28a9f61
3 changed files with 19 additions and 0 deletions

9
configure vendored
View File

@ -8064,6 +8064,15 @@ fi
case "$host_os" in
*)
# AC_DEFINE([_XOPEN_SOURCE], [500], [Need pread])
$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
;;
esac
ALL_LDFLAGS="$LDFLAGS $SQLITE3_LDFLAGS"
static_lib_list="libncurses.a libreadline.a libsqlite3.a libz.a libtinfo.a"

View File

@ -138,6 +138,13 @@ AX_PATH_LIB_READLINE
LNAV_WITH_SQLITE3("3.0.0")
case "$host_os" in
*)
# AC_DEFINE([_XOPEN_SOURCE], [500], [Need pread])
AC_DEFINE([_BSD_SOURCE], [1], [Need pread])
;;
esac
ALL_LDFLAGS="$LDFLAGS $SQLITE3_LDFLAGS"
static_lib_list="libncurses.a libreadline.a libsqlite3.a libz.a libtinfo.a"

View File

@ -161,3 +161,6 @@
/* Version number of package */
#undef VERSION
/* Need pread */
#undef _BSD_SOURCE