--- a/re_search.c
+++ b/re_search.c
@@ -16,7 +16,7 @@
 #ifdef REGEX
 #include <sys/queue.h>
 #include <sys/types.h>
-#include <regex.h>
+#include <pcre2posix.h>
 #include <signal.h>
 #include <stdio.h>
 #include <string.h>
