#include <stdio.h>
-#ifdef USE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#ifdef TIME_WITH_SYS_TIME
#include <time.h>
#include <sgtty.h>
#endif
#include <sys/ioctl.h>
-#ifdef USE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
#else
#include <time.h>
#endif
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
-#ifdef USE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
#else
#include <time.h>
#endif
/* ASN.1 primitive decoders */
#include "asn1_decode.h"
#include "asn1_get.h"
-#include <time.h>
-#ifdef USE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
+#else
+#include <time.h>
#endif
#define setup()\
dnl time checks are for timeofday.c (which gets them from osconf.h)
dnl and gmt_mktime.c (which only gets them from here...)
AC_TIME_WITH_SYS_TIME
-AC_HEADER_CHECK(sys/time.h,AC_DEFINE(USE_SYS_TIME_H))
+AC_HAVE_HEADERS(sys/time.h)
AC_HEADER_EGREP(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
WITH_CCOPTS
AC_SET_BUILDTOP
#include <stdio.h>
#include <sys/types.h>
-#include <time.h>
-#ifdef USE_SYS_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
+#include <time.h>
+#endif
+#else
+#include <time.h>
#endif
/* take a struct tm, return seconds from GMT epoch */