From 2170fce3df1f08aa410a4b4e981e0f90d2dc921b Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 3 Sep 1996 04:42:59 +0000 Subject: [PATCH] On NextStep, doesn't define struct utime, unless we #define _POSIX_SOURCE before #including it. * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test. * acconfig.h: New comment text for above CPP symbol. * configure.in: Call it. * posix.c: #define _POSIX_SOURCE if it seems necessary. * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h in the list. * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of testing for __EMX__. --- libguile/configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/configure.in b/libguile/configure.in index 98b530b36..ecd62f4ba 100644 --- a/libguile/configure.in +++ b/libguile/configure.in @@ -36,7 +36,7 @@ AC_HEADER_STDC AC_HEADER_DIRENT AC_HEADER_TIME AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h time.h unistd.h) +AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h) AC_TYPE_GETGROUPS AC_TYPE_SIGNAL @@ -49,6 +49,7 @@ AC_REPLACE_FUNCS(inet_aton strerror) AC_STRUCT_ST_RDEV AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLOCKS +GUILE_STRUCT_UTIMBUF #-------------------------------------------------------------------- # -- 2.20.1