Add two BSD-specific preprocessor macros to get additional prototypes. Thanks to Netocrat.

darcs-hash:20060810203756-ac50b-21259e610fc738c6ad990d88b0af74d56d6a38f8.gz
This commit is contained in:
axel 2006-08-11 06:37:56 +10:00
parent 6899e4e734
commit 8da54a1955

View file

@ -208,6 +208,7 @@ if test $target_cpu = powerpc; then
AC_DEFINE([TPUTS_KLUDGE],[1],[Evil kludge to get Power based machines to work])
fi
# Solaris-specific flags go here
AC_MSG_CHECKING([if we are under Solaris])
case $target_os in
solaris*)
@ -220,6 +221,20 @@ case $target_os in
esac
# BSD-specific flags go here
AC_MSG_CHECKING([if we are under BSD])
case $target_os in
*bsd*)
AC_DEFINE( __BSD_VISIBLE, 1, [Macro to enable additional prototypes under BSD])
AC_DEFINE( _NETBSD_SOURCE, 1, [Macro to enable additional prototypes under BSD])
AC_MSG_RESULT(yes)
;;
*)
AC_MSG_RESULT(no)
;;
esac
# Set up PREFIX and related preprocessor symbols. Fish needs to know
# where it will be installed. One of the reasons for this is so that
# it can make sure the fish installation directory is in the path