From: jmarcus Date: Mon, 3 Dec 2001 15:46:29 +0000 (+0000) Subject: Tru64 does not define timeval in time.h. Make sure we check for time.h and X-Git-Tag: point-backport-1-5-1~68 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=d394b4dce406af8787990501c4d31b497bef5fcd Tru64 does not define timeval in time.h. Make sure we check for time.h and cma.h to add better portability. --- diff --git a/configure.in b/configure.in index c9ba7979..78c25e9e 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.136 2001-12-01 15:26:41 srittau Exp $ +dnl $Id: configure.in,v 1.137 2001-12-03 15:46:29 jmarcus Exp $ dnl configure.in for netatalk AC_INIT(bin/adv1tov2/adv1tov2.c) @@ -77,7 +77,7 @@ dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(fcntl.h limits.h stdint.h strings.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h) +AC_CHECK_HEADERS(fcntl.h limits.h stdint.h strings.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h time.h cma.h) AC_CHECK_HEADER(sys/cdefs.h,, AC_MSG_RESULT([enabling generic cdefs.h from tree]) CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS" diff --git a/libatalk/cnid/cnid_add.c b/libatalk/cnid/cnid_add.c index 28f50dac..c0ff2811 100644 --- a/libatalk/cnid/cnid_add.c +++ b/libatalk/cnid/cnid_add.c @@ -1,5 +1,5 @@ /* - * $Id: cnid_add.c,v 1.15 2001-11-27 23:38:17 jmarcus Exp $ + * $Id: cnid_add.c,v 1.16 2001-12-03 15:46:30 jmarcus Exp $ * * Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -26,7 +26,12 @@ #endif /* HAVE_FCNTL_H */ #include #include +#ifdef HAVE_TIME_H #include +#endif /* HAVE_TIME_H */ +#ifdef HAVE_CMA_H +#include +#endif /* HAVE_CMA_H */ #include #include