summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 9d948dc12..e8cbfeb6b 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -77,7 +77,9 @@
#include <string.h>
-#include "unlocked-io.h"
+#if USE_UNLOCKED_IO
+# include "unlocked-io.h"
+#endif
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)