Skip to content

Commit

Permalink
Add two BSD-specific preprocessor macros to get additional prototypes…
Browse files Browse the repository at this point in the history
…. Thanks to Netocrat.

darcs-hash:20060810203756-ac50b-21259e610fc738c6ad990d88b0af74d56d6a38f8.gz
  • Loading branch information
liljencrantz committed Aug 10, 2006
1 parent 6899e4e commit 8da54a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand All @@ -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
Expand Down

0 comments on commit 8da54a1

Please sign in to comment.