summaryrefslogtreecommitdiff
path: root/lib/gettimeofday.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gettimeofday.c')
-rw-r--r--lib/gettimeofday.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c
index f9afc22c1..eb6de94f1 100644
--- a/lib/gettimeofday.c
+++ b/lib/gettimeofday.c
@@ -20,7 +20,9 @@
/* written by Jim Meyering */
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
/* Disable the definitions of these functions (from config.h)
so we can use the library versions here. */