and they're compatible, include both.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17102
dc483132-0cff-0310-8789-
dd5450dbe970
+2005-02-11 Ken Raeburn <raeburn@mit.edu>
+
+ * 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 <raeburn@mit.edu>
* New directory.
#include <sys/socket.h>
#endif
#include <errno.h>
+#include "krb5/autoconf.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
/* need struct timeval */
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#else
-#include <time.h>
+#if HAVE_TIME_H && (!HAVE_SYS_TIME_H || TIME_WITH_SYS_TIME)
+# include <time.h>
+#endif
+#if HAVE_SYS_TIME_H
+# include <sys/time.h>
#endif
#include <gssapi/gssapi_generic.h>