summaryrefslogtreecommitdiff
path: root/lib/frrstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrstr.c')
-rw-r--r--lib/frrstr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/frrstr.c b/lib/frrstr.c
index 8a72a35af0..7ef5fffd12 100644
--- a/lib/frrstr.c
+++ b/lib/frrstr.c
@@ -25,7 +25,11 @@
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
+#ifdef HAVE_LIBPCREPOSIX
+#include <pcreposix.h>
+#else
#include <regex.h>
+#endif /* HAVE_LIBPCREPOSIX */
#include "frrstr.h"
#include "memory.h"