summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-05-20 21:05:34 +0200
committerAlejandro Colomar <alx@kernel.org>2023-05-20 21:05:34 +0200
commit2bed52f1c858e6b4289a03d5bce05cbe7b78b6f9 (patch)
tree2dede18ce878b9705fab70c250dd3e2bf48bbd13
parent1d5e90df76ceda5984718bacd4681617e2fafe84 (diff)
Makefile, nxt_unit_app_test.c: Set ftm(7) in $CPPFLAGS
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-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>