setup to fix time includes
authorMark Eichin <eichin@mit.edu>
Wed, 17 Aug 1994 02:26:06 +0000 (02:26 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 17 Aug 1994 02:26:06 +0000 (02:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4165 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/ChangeLog
src/include/krb5/acconfig.h
src/include/krb5/configure.in
src/include/krb5/stock/osauto.h
src/include/krb5/stock/osconf.h
src/include/krb5/sysincl.h

index a617fe4f311147a741e37a7601fc33510bd80d25..7a3d215a7b1c137a5ff68571de3c51dab3cd01b0 100644 (file)
@@ -1,3 +1,11 @@
+Tue Aug 16 22:01:56 1994  Mark Eichin  (eichin@cygnus.com)
+
+       * configure.in: change test for USE_SYS_TIME_H to consistent
+       (autoconf style) check for HAVE_SYS_TIME_H with
+       TIME_WITH_SYS_TIME, and use them everywhere.
+       * stock/osauto.h: get rid of USE_TIME_H.
+       * stock/osconf.h: get rid of USE_TIME_H, rename USE_SYS_TIME_H.
+
 Tue Aug  9 02:17:40 1994  Tom Yu  (tlyu@dragons-lair)
 
        * preauth.h: fix preauth function names as well (timestamp ->
index eaf5ca50dfe9484b70138a577e15ea0ab8ed52c8..cc15d2b6ba23d3e8f41dcea26728e99976b96d7c 100644 (file)
@@ -27,4 +27,4 @@
 #undef HAS_UNISTD_H
 #undef KRB5_USE_INET
 #undef ODBM
-#undef USE_SYS_TIME_H
+#undef TM_IN_SYS_TIME
index 3b4d5b0cdd65863b59df7baeb7f161c892435ccb..0d3ac7d679b26d774a1e4f67cf739df6af5d38c3 100644 (file)
@@ -78,7 +78,7 @@ AC_DEFINE(BITS32)
 
 dnl then from osconf.h, we have
 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_CHECK(netinet/in.h,AC_DEFINE(KRB5_USE_INET))
 AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
index 17266d32602dbbfeb3c2907911a1f4ee7491c461..4f204921c46bd8baed564e93c45420fff81c6f09 100644 (file)
 #include "autoconf.h"
 #endif
 
-#ifdef USE_SYS_TIME_H
-#ifdef TIME_WITH_SYS_TIME
-#define USE_TIME_H
-#endif /* TIME_WITH_SYS_TIME */
-#else /* !USE_SYS_TIME_H */
-#define USE_TIME_H
-#endif /* USE_SYS_TIME_H */
-
 /* remainder added on */
index 23a9ed12209fc74ef6c73f5fea05eaaea769ee21..8e2b73d1ef0cbdd986b93bd31b2bac28f56d2a94 100644 (file)
@@ -40,9 +40,6 @@
 #ifdef UseSysTimeH
 #define        USE_SYS_TIME_H  /* Needs <sys/time.h> for time includes. */             
 #endif
-#ifdef UseTimeH
-#define        USE_TIME_H      /* Needs <time.h> for time includes. */
-#endif
 
 #ifdef HasInetTrue
 #define KRB5_USE_INET          /* Support IP address family */
index 260846939c9e7167ff2e8c827b8513f591d79b0e..f74886882f3ae7ed1c748f0da0bfeee7f562128b 100644 (file)
 #endif /* KRB5_SYSTYPES__ */
 
 #include <krb5/osconf.h>               /* USE*TIME_H macros */
-#ifdef USE_TIME_H
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#ifdef TIME_WITH_SYS_TIME
 #include <time.h>
 #endif
-#ifdef USE_SYS_TIME_H
-#include <sys/time.h>                  /* struct timeval, utimes() */
+#else
+#include <time.h>
 #endif
 #include <sys/stat.h>                  /* struct stat, stat() */
 #include <sys/param.h>                 /* MAXPATHLEN */