From 956adf81e45d755b25566b1889c47f566b957e5e Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Wed, 15 May 2024 18:36:46 -0700 Subject: [PATCH] Define _GNU_SOURCE to expose qsort_r(). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1e6bec..cfe7f1e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ OFLAGS += -Wall -Wno-unused -O3 -DNDEBUG GFLAGS += -Wall -Wno-unused -g PFLAGS += $(OFLAGS) -pg -CFLAGS += -I/opt/local/include +CFLAGS += -D_GNU_SOURCE -I/opt/local/include LDLIBS += -L/opt/local/lib LDLIBS += -lgc -lm