mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-05 14:32:15 +00:00
Tweaks to build slirp on MacOS X. Yeah, there is now ethernet there! ;-)
This commit is contained in:
parent
f346839f86
commit
e259aeb504
@ -190,7 +190,7 @@ no:linux*|no:netbsd*)
|
||||
])
|
||||
])
|
||||
AC_CHECK_FUNCS(pthread_cancel)
|
||||
AC_CHECK_FUNCS(pthread_cond_init)
|
||||
AC_CHECK_FUNCS(pthread_cond_init pthread_testcancel)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_settype)
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_setpshared)
|
||||
@ -331,6 +331,23 @@ AC_TYPE_SIGNAL
|
||||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
|
||||
dnl Check whether sys/socket.h defines type socklen_t.
|
||||
dnl (extracted from ac-archive/Miscellaneous)
|
||||
AC_CACHE_CHECK([for socklen_t],
|
||||
ac_cv_type_socklen_t, [
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
], [socklen_t len = 42; return 0;],
|
||||
ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no,
|
||||
dnl When cross-compiling, do not assume anything.
|
||||
ac_cv_type_socklen_t="guessing no"
|
||||
)
|
||||
])
|
||||
if [[ "x$ac_cv_type_socklen_t" != "xyes" ]]; then
|
||||
AC_DEFINE(socklen_t, int, [Define to 'int' if <sys/types.h> doesn't define.])
|
||||
fi
|
||||
|
||||
dnl Check whether struct sigaction has sa_restorer member.
|
||||
AC_CACHE_CHECK([whether struct sigaction has sa_restorer],
|
||||
ac_cv_signal_sa_restorer, [
|
||||
|
Loading…
Reference in New Issue
Block a user