1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-09 23:40:29 +02:00

(socklen_t): Enhance test for this type, coping with

need for <sys/socket.h> on MacOS X.  Reported by Michael Tuexen and
Jay Cotton.
This commit is contained in:
Kevin Ryde 2006-03-30 23:33:12 +00:00
parent a77bd42e52
commit e28124461b

View file

@ -515,9 +515,6 @@ AC_SUBST([SCM_I_GSC_T_UINTMAX])
AC_SUBST([SCM_I_GSC_NEEDS_STDINT_H]) AC_SUBST([SCM_I_GSC_NEEDS_STDINT_H])
AC_SUBST([SCM_I_GSC_NEEDS_INTTYPES_H]) AC_SUBST([SCM_I_GSC_NEEDS_INTTYPES_H])
AC_CHECK_TYPE(socklen_t, int)
AC_CHECK_TYPE(struct ip_mreq)
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_DIRENT AC_HEADER_DIRENT
AC_HEADER_TIME AC_HEADER_TIME
@ -532,6 +529,18 @@ sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
direct.h]) direct.h])
# On MacOS X <sys/socklen.h> contains socklen_t, so must include that
# when testing.
AC_CHECK_TYPE(socklen_t, ,
[AC_DEFINE_UNQUOTED(socklen_t, int,
[Define to `int' if <sys/socket.h> does not define.])],
[#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/socket.h>
])
AC_CHECK_TYPE(struct ip_mreq)
GUILE_HEADER_LIBC_WITH_UNISTD GUILE_HEADER_LIBC_WITH_UNISTD
AC_TYPE_GETGROUPS AC_TYPE_GETGROUPS