From: Ken Raeburn Date: Sat, 12 Feb 2005 01:14:00 +0000 (+0000) Subject: * gss-misc.c: Include autoconf.h. If both time.h and sys/time.h are available, X-Git-Tag: ms-bug-test-20060525~333 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66b531b92f70ba34f88c06cd136345defdbb6946;p=krb5.git * gss-misc.c: Include autoconf.h. If both time.h and sys/time.h are available, and they're compatible, include both. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17102 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/gss-threads/ChangeLog b/src/tests/gss-threads/ChangeLog index 2b4c17558..11e71b730 100644 --- a/src/tests/gss-threads/ChangeLog +++ b/src/tests/gss-threads/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Ken Raeburn + + * gss-misc.c: Include autoconf.h. If both time.h and sys/time.h + are available, and they're compatible, include both. + 2005-02-09 Ken Raeburn * New directory. diff --git a/src/tests/gss-threads/gss-misc.c b/src/tests/gss-threads/gss-misc.c index c912792e0..3405275fa 100644 --- a/src/tests/gss-threads/gss-misc.c +++ b/src/tests/gss-threads/gss-misc.c @@ -57,16 +57,18 @@ static char *rcsid = "$Header$"; #include #endif #include +#include "krb5/autoconf.h" #ifdef HAVE_UNISTD_H #include #endif #include /* need struct timeval */ -#ifdef HAVE_SYS_TIME_H -#include -#else -#include +#if HAVE_TIME_H && (!HAVE_SYS_TIME_H || TIME_WITH_SYS_TIME) +# include +#endif +#if HAVE_SYS_TIME_H +# include #endif #include