summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Carr <jfc@mit.edu>1990-10-31 20:37:15 +0000
committerJohn Carr <jfc@mit.edu>1990-10-31 20:37:15 +0000
commitf44eae879aef25504680c87b5f6299640b5ca29a (patch)
tree835ac5b15f2299f8270379a3590893543912e6df /src
parent79dd23c4e69f21d2e3d1df3330da6543403b418d (diff)
downloadkrb5-f44eae879aef25504680c87b5f6299640b5ca29a.tar.gz
krb5-f44eae879aef25504680c87b5f6299640b5ca29a.tar.xz
krb5-f44eae879aef25504680c87b5f6299640b5ca29a.zip
Check config variables to include <time.h> vs. <sys/time.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1386 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/krb5/sysincl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/krb5/sysincl.h b/src/include/krb5/sysincl.h
index 622964aac..4ca584646 100644
--- a/src/include/krb5/sysincl.h
+++ b/src/include/krb5/sysincl.h
@@ -21,7 +21,13 @@
#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__)