summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index d230f4c..94545c4 100755
--- a/configure
+++ b/configure
@@ -24,3 +24,11 @@ CFLAGS += $(pkg-config --cflags $libs)
 LDFLAGS += $(pkg-config --libs-only-L $libs)
 LDLIBS = $(pkg-config --libs-only-l $libs)
 EOF
+
+case "$(uname)" in
+	(Linux)
+		if ! grep -q -e '-D_GNU_SOURCE' config.mk; then
+			echo 'CFLAGS += -D_GNU_SOURCE' >> config.mk
+		fi
+		;;
+esac
/td> 2019-02-08Improve ANSI output and base IRC on itJune McEnroe 2019-02-08Add hi -nJune McEnroe 2019-02-08Elaborate hi man pageJune McEnroe 2019-02-08Use set for parent in hiJune McEnroe 2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe 2019-02-08Match only the basename in hiJune McEnroe 2019-02-07Add mdoc syntax to hiJune McEnroe 2019-02-07Support multi-line C macros in hiJune McEnroe 2019-02-07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe