summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index ec2701b..8dd8f75 100644
--- a/eval.c
+++ b/eval.c
@@ -43,7 +43,6 @@
#include <fnmatch.h>
#include <grp.h>
#include <pwd.h>
-#include <regex.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
@@ -55,6 +54,12 @@
#include <unistd.h>
#include <wchar.h>
+#ifdef USE_ONIGURUMA
+ #include <onigposix.h>
+#else
+ #include <regex.h>
+#endif
+
struct eval_state {
/** Data about the current file. */
const struct BFTW *ftwbuf;