From 8da54a1955d590c79f0f4afc4c42374ebc213b05 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 11 Aug 2006 06:37:56 +1000 Subject: [PATCH] Add two BSD-specific preprocessor macros to get additional prototypes. Thanks to Netocrat. darcs-hash:20060810203756-ac50b-21259e610fc738c6ad990d88b0af74d56d6a38f8.gz --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index 4678be77e..e42adf9fb 100644 --- a/configure.ac +++ b/configure.ac @@ -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