Skip to content

Commit

Permalink
set _GNU_SOURCE on cygwin
Browse files Browse the repository at this point in the history
this is needed for pipe2()
  • Loading branch information
davidm-hb committed Apr 21, 2017
1 parent 749696e commit d35231e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/lib.mk
Expand Up @@ -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
Expand Down

0 comments on commit d35231e

Please sign in to comment.