From 667ea3fc7b62d5d19965a7d1dad501118acfe5ff Mon Sep 17 00:00:00 2001
From: Evan Hanson
Date: Fri, 13 Jan 2017 16:08:03 +1300
Subject: [PATCH] Add _XOPEN_SOURCE feature test macro
This provides access to strptime(3) from , which is otherwise
undefined on at least Cygwin and possibly other platforms.
Signed-off-by: Peter Bex
---
chicken.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/chicken.h b/chicken.h
index 4ae93e0..2adbc38 100644
--- a/chicken.h
+++ b/chicken.h
@@ -47,6 +47,10 @@
# define __C99FEATURES__
#endif
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 700
+#endif
+
#ifndef _BSD_SOURCE
# define _BSD_SOURCE
#endif
--
2.1.4