summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/completions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/completions.c b/src/completions.c
index b06db2b..4143b2d 100644
--- a/src/completions.c
+++ b/src/completions.c
@@ -18,12 +18,12 @@
* Boston, MA 02111-1307 USA
*/
-#include <strings.h>
/*
* Per POSIX strcasestr should be declared in strings.h
- * glibc declares it in string.h instead.
+ * glibc declares it in string.h instead and needs _GNU_SOURCE
*/
#define _GNU_SOURCE
+#include <strings.h>
#include <string.h>
#include "ratpoison.h"