aboutsummaryrefslogtreecommitdiffstats
path: root/src/keylist.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/keylist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keylist.c b/src/keylist.c
index f76904b0..8f61a261 100644
--- a/src/keylist.c
+++ b/src/keylist.c
@@ -25,8 +25,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-/* Solaris 8 needs sys/types.h before time.h. */
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+ /* Solaris 8 needs sys/types.h before time.h. */
+# include <sys/types.h>
+#endif
#include <time.h>
#include <assert.h>
#include <ctype.h>