Check config variables to include <time.h> vs. <sys/time.h>
authorJohn Carr <jfc@mit.edu>
Wed, 31 Oct 1990 20:37:15 +0000 (20:37 +0000)
committerJohn Carr <jfc@mit.edu>
Wed, 31 Oct 1990 20:37:15 +0000 (20:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1386 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/sysincl.h

index 622964aac4b4a22acf4b4885e821e864ec896d81..4ca58464699bfc9e1b8fd5d98f8b5bffef5fd566 100644 (file)
 #include <sys/types.h>                 /* needed for much of the reset */
 #endif /* KRB5_SYSTYPES__ */
 
+#include <krb5/osconf.h>               /* USE*TIME_H macros */
+#ifdef USE_TIME_H
+#include <time.h>
+#endif
+#ifdef USE_SYS_TIME_H
 #include <sys/time.h>                  /* struct timeval, utimes() */
+#endif
 #include <sys/stat.h>                  /* struct stat, stat() */
 #include <sys/param.h>                 /* MAXPATHLEN */
 #if defined(unix) || defined(__unix__)