summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.c b/util.c
index 71b3c53..b5ef8f8 100644
--- a/util.c
+++ b/util.c
@@ -21,7 +21,6 @@
#include <fcntl.h>
#include <langinfo.h>
#include <nl_types.h>
-#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -30,6 +29,12 @@
#include <sys/types.h>
#include <unistd.h>
+#ifdef USE_ONIGURUMA
+ #include <onigposix.h>
+#else
+ #include <regex.h>
+#endif
+
#if BFS_HAS_SYS_PARAM
# include <sys/param.h>
#endif