From 66b531b92f70ba34f88c06cd136345defdbb6946 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 12 Feb 2005 01:14:00 +0000 Subject: [PATCH] * 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 --- src/tests/gss-threads/ChangeLog | 5 +++++ src/tests/gss-threads/gss-misc.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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 -- 2.26.2