summaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
commit1221e834f49adb91eb0b7443a57274f2611459c2 (patch)
tree7afb7ed5a203ddefd5559005af7ec61d801b972e /src/regex
parentf546f27d1fdb8d2663b2fbb130f53ee32cac90b0 (diff)
compile in current environment
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/regcomp.c1
-rw-r--r--src/regex/regerror.c1
-rw-r--r--src/regex/regexec.c1
-rw-r--r--src/regex/regfree.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c
index 9c3585b1..8dc2aa8d 100644
--- a/src/regex/regcomp.c
+++ b/src/regex/regcomp.c
@@ -1,3 +1,4 @@
+#include "sys/types.h"
#include <regex.h>
int regcomp(regex_t * restrict preg, const char * restrict pattern, int cflags)
diff --git a/src/regex/regerror.c b/src/regex/regerror.c
index 6c11fb3b..49d7a28e 100644
--- a/src/regex/regerror.c
+++ b/src/regex/regerror.c
@@ -1,3 +1,4 @@
+#include "sys/types.h"
#include <regex.h>
size_t regerror(int errcode, const regex_t * restrict preg, char * restrict errbuf, size_t errbuf_size)
diff --git a/src/regex/regexec.c b/src/regex/regexec.c
index d749c257..1051f732 100644
--- a/src/regex/regexec.c
+++ b/src/regex/regexec.c
@@ -1,3 +1,4 @@
+#include "sys/types.h"
#include <regex.h>
int regexec(const regex_t * restrict preg, const char * restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags)
diff --git a/src/regex/regfree.c b/src/regex/regfree.c
index 14395e6a..34cbb379 100644
--- a/src/regex/regfree.c
+++ b/src/regex/regfree.c
@@ -1,3 +1,4 @@
+#include "sys/types.h"
#include <regex.h>
void regfree(regex_t * preg)