about summary refs log tree commit diff
path: root/mk/lib.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-04-21T15·39+0200
committerGitHub <noreply@github.com>2017-04-21T15·39+0200
commit169edf94072c92f9a6148838c50c92350c5bc183 (patch)
treeb046be4ff1c5a88d4b404bea68bf01aaf28699a9 /mk/lib.mk
parent749696e71c9d637a36ab09a1368dff01b2b1bda8 (diff)
parent804ac524891ead6aa70e27c093686b71391ea232 (diff)
Merge pull request #1352 from corngood/cygwin-fixes
Cygwin fixes
Diffstat (limited to 'mk/lib.mk')
-rw-r--r--mk/lib.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index bb82801d3b4e..1da51d879734 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -53,8 +53,8 @@ BUILD_SHARED_LIBS ?= 1
 
 ifeq ($(BUILD_SHARED_LIBS), 1)
   ifeq (CYGWIN,$(findstring CYGWIN,$(OS)))
-    GLOBAL_CFLAGS += -U__STRICT_ANSI__
-    GLOBAL_CXXFLAGS += -U__STRICT_ANSI__
+    GLOBAL_CFLAGS += -U__STRICT_ANSI__ -D_GNU_SOURCE
+    GLOBAL_CXXFLAGS += -U__STRICT_ANSI__ -D_GNU_SOURCE
   else
     GLOBAL_CFLAGS += -fPIC
     GLOBAL_CXXFLAGS += -fPIC