From 9fee078c146b92b4afa48d24c175e72439feeb8a Mon Sep 17 00:00:00 2001 From: jmarcus Date: Mon, 3 Dec 2001 15:50:06 +0000 Subject: [PATCH] Don't include time.h as it can be less portable. Instead, include sys/time.h. --- configure.in | 4 ++-- libatalk/cnid/cnid_add.c | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index 78c25e9e..72a47295 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.137 2001-12-03 15:46:29 jmarcus Exp $ +dnl $Id: configure.in,v 1.138 2001-12-03 15:50:06 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 time.h cma.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) 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 c0ff2811..856ebd73 100644 --- a/libatalk/cnid/cnid_add.c +++ b/libatalk/cnid/cnid_add.c @@ -1,5 +1,5 @@ /* - * $Id: cnid_add.c,v 1.16 2001-12-03 15:46:30 jmarcus Exp $ + * $Id: cnid_add.c,v 1.17 2001-12-03 15:50:06 jmarcus Exp $ * * Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -26,12 +26,9 @@ #endif /* HAVE_FCNTL_H */ #include #include -#ifdef HAVE_TIME_H -#include -#endif /* HAVE_TIME_H */ -#ifdef HAVE_CMA_H -#include -#endif /* HAVE_CMA_H */ +#ifdef HAVE_SYS_TIME_H +#include +#endif /* HAVE_SYS_TIME_H */ #include #include -- 2.39.2