summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/nxt_unit_app_test.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ff498ce..ca4f519 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ LIBUNIT_PREFIX := /opt/local/unit
LIBUNIT_CPPFLAGS := -isystem$(LIBUNIT_PREFIX)/include
LIBUNIT_LIBS := -L$(LIBUNIT_PREFIX)/lib -lunit
-DEFAULT_CPPFLAGS := $(LIBUNIT_CPPFLAGS)
+DEFAULT_CPPFLAGS := -D_GNU_SOURCE $(LIBUNIT_CPPFLAGS)
EXTRA_CPPFLAGS :=
CPPFLAGS := $(DEFAULT_CPPFLAGS) $(EXTRA_CPPFLAGS)
diff --git a/src/nxt_unit_app_test.c b/src/nxt_unit_app_test.c
index d4fea18..a5dc1aa 100644
--- a/src/nxt_unit_app_test.c
+++ b/src/nxt_unit_app_test.c
@@ -3,7 +3,6 @@
* Copyright (C) NGINX, Inc.
*/
-#define _GNU_SOURCE
#include <nxt_unit.h>
#include <nxt_unit_request.h>
//#include <nxt_clang.h>