diff options
| author | Mark Eichin <eichin@mit.edu> | 1994-08-17 02:28:14 +0000 |
|---|---|---|
| committer | Mark Eichin <eichin@mit.edu> | 1994-08-17 02:28:14 +0000 |
| commit | f22ee5a27541220707d7800a030000c9f786eabe (patch) | |
| tree | 4a79ecde6c3ddb536ba882524cb574270f755e52 /src | |
| parent | 9cf690c88a43771d80b76a183b111ba39c7fc2f9 (diff) | |
| download | krb5-f22ee5a27541220707d7800a030000c9f786eabe.tar.gz krb5-f22ee5a27541220707d7800a030000c9f786eabe.tar.xz krb5-f22ee5a27541220707d7800a030000c9f786eabe.zip | |
fix time includes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4166 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/kadmin/server/adm_fmt_inq.c | 2 | ||||
| -rw-r--r-- | src/kdc/kerberos_v4.c | 5 | ||||
| -rw-r--r-- | src/lib/crypto/os/rnd_confoun.c | 5 | ||||
| -rw-r--r-- | src/lib/krb5/asn.1/asn1_decode.c | 8 | ||||
| -rw-r--r-- | src/lib/krb5/os/configure.in | 2 | ||||
| -rw-r--r-- | src/lib/krb5/os/gmt_mktime.c | 8 |
6 files changed, 22 insertions, 8 deletions
diff --git a/src/kadmin/server/adm_fmt_inq.c b/src/kadmin/server/adm_fmt_inq.c index 698203772..be1813258 100644 --- a/src/kadmin/server/adm_fmt_inq.c +++ b/src/kadmin/server/adm_fmt_inq.c @@ -41,7 +41,7 @@ static char rcsid_adm_fmt_inq[] = #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> diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index 757026b29..6db66075f 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -50,8 +50,11 @@ static char rcsid_kerberos_v4_c[] = #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 diff --git a/src/lib/crypto/os/rnd_confoun.c b/src/lib/crypto/os/rnd_confoun.c index 9d01b1d96..5137af176 100644 --- a/src/lib/crypto/os/rnd_confoun.c +++ b/src/lib/crypto/os/rnd_confoun.c @@ -32,8 +32,11 @@ static char rcsid_rnd_counfoun_c[] = #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 diff --git a/src/lib/krb5/asn.1/asn1_decode.c b/src/lib/krb5/asn.1/asn1_decode.c index 82dde8f00..76304ece6 100644 --- a/src/lib/krb5/asn.1/asn1_decode.c +++ b/src/lib/krb5/asn.1/asn1_decode.c @@ -25,9 +25,13 @@ /* 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()\ diff --git a/src/lib/krb5/os/configure.in b/src/lib/krb5/os/configure.in index 4da1e1f7b..25cd1afec 100644 --- a/src/lib/krb5/os/configure.in +++ b/src/lib/krb5/os/configure.in @@ -2,7 +2,7 @@ AC_INIT(configure.in) 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 diff --git a/src/lib/krb5/os/gmt_mktime.c b/src/lib/krb5/os/gmt_mktime.c index d4e759d17..01d87dd48 100644 --- a/src/lib/krb5/os/gmt_mktime.c +++ b/src/lib/krb5/os/gmt_mktime.c @@ -3,9 +3,13 @@ #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 */ |
