summaryrefslogtreecommitdiffstats
path: root/include/osdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osdep.h')
-rw-r--r--include/osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osdep.h b/include/osdep.h
index 3aa93e7b..351d55af 100644
--- a/include/osdep.h
+++ b/include/osdep.h
@@ -16,7 +16,9 @@
#elif defined(__linux__)
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for strcasestr */
+#endif
#include <sys/ioctl.h>
#include <sys/file.h> /* for flock() */
#include <strings.h> /* for strcasecmp() */