summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto')
-rw-r--r--src/lib/crypto/os/rnd_confoun.c5
1 files changed, 4 insertions, 1 deletions
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