summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2017-02-17 23:19:10 +0800
committerWill Estes <westes575@gmail.com>2017-02-17 16:56:21 -0500
commitd1b195b67171ee246cf589670f1a7db04fa93afc (patch)
tree132390a841f4730d12d9c056ce6b48b7cc9eb8b6 /src
parentdbb4e94dc7bacbcfd4acef4f085ef752fe1aa03f (diff)
build: Include <strings.h>; add strcasecmp() check to configure.
strings.h (not string.h) is the standard-defined include header for strcasecmp(). Include <strings.h> for portability (even though glibc exposes strcasecmp() declaration also in <string.h> by default).
Diffstat (limited to 'src')
-rw-r--r--src/flexdef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flexdef.h b/src/flexdef.h
index b3162e2..dd643a7 100644
--- a/src/flexdef.h
+++ b/src/flexdef.h
@@ -73,6 +73,8 @@
#include <stdarg.h>
/* Required: regcomp(), regexec() and regerror() in <regex.h> */
#include <regex.h>
+/* Required: strcasecmp() in <strings.h> */
+#include <strings.h>
#include "flexint.h"
/* We use gettext. So, when we write strings which should be translated, we mark them with _() */