Add checking for whether we should be pulling in <time.h> and <sys/time.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4636
dc483132-0cff-0310-8789-
dd5450dbe970
Mon Nov 7 22:16:51 1994 Theodore Y. Ts'o (tytso@dcl)
+ * configure.in: Check for sys/time.h and time.h.
+
+ * defs.h: Pull in <sys/time.h> and <time.h> as necessary.
+
+ * sys_term.c (startslave): Don't define time() manually.
+
* configure.in: Add check for util library (needed for the Alpha)
Thu Sep 29 22:51:52 1994 Theodore Y. Ts'o (tytso@dcl)
[cc_t foo;],,AC_DEFINE(NO_CC_T))
fi
fi
+AC_HEADER_TIME
+AC_CHECK_HEADERS(sys/time.h)
AC_HAVE_FUNCS(vhangup)
AC_FUNC_CHECK(grantpt,AC_DEFINE(STREAMSPTY))
AC_FUNC_CHECK(gettosbyname,AC_DEFINE(HAS_GETTOS))
#include <fcntl.h>
#include <sys/file.h>
#include <sys/stat.h>
-#include <sys/time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#ifndef FILIO_H
#include <sys/ioctl.h>
#else
char *autoname;
{
register int i;
- long time();
#ifdef NEWINIT
extern char *ptyip;
struct init_request request;