mirror of
https://repo.or.cz/socat.git
synced 2025-07-17 16:43:24 +00:00
Prevent multiple definition of bool,Min(),Max() (MacOS X)
This commit is contained in:
parent
4228399da0
commit
fb0246084a
4 changed files with 26 additions and 2 deletions
10
configure.in
10
configure.in
|
@ -766,6 +766,16 @@ AC_MSG_RESULT($sc_cv_type_longlong)
|
|||
|
||||
AC_CHECK_TYPE(sig_atomic_t,AC_DEFINE(HAVE_TYPE_SIG_ATOMIC_T),,[#include "sysincludes.h"])
|
||||
|
||||
AC_MSG_CHECKING(for bool)
|
||||
AC_CACHE_VAL(sc_cv_type_bool,
|
||||
[AC_TRY_COMPILE([],[bool b;],
|
||||
[sc_cv_type_bool=yes],
|
||||
[sc_cv_type_bool=no])])
|
||||
if test $sc_cv_type_bool = yes; then
|
||||
AC_DEFINE(HAVE_TYPE_BOOL)
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_bool)
|
||||
|
||||
# following builtin macro does not check unistd.h and sys/socket.h where
|
||||
# socklen_t might be defined
|
||||
#AC_CHECK_TYPE(socklen_t, int)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue