]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/frrstr.c
lib: Add PCRE2 support
[mirror_frr.git] / lib / frrstr.c
index 1b98b224cc9e329d0fad8adbec15d2662feac4dc..d66c6f8c16f71ba049f7e074397b478e1cf4724e 100644 (file)
 #include <string.h>
 #include <ctype.h>
 #include <sys/types.h>
-#ifdef HAVE_LIBPCREPOSIX
+#ifdef HAVE_LIBPCRE2_POSIX
+#ifndef _FRR_PCRE2_POSIX
+#define _FRR_PCRE2_POSIX
+#include <pcre2posix.h>
+#endif /* _FRR_PCRE2_POSIX */
+#elif defined(HAVE_LIBPCREPOSIX)
 #include <pcreposix.h>
 #else
 #include <regex.h>
-#endif /* HAVE_LIBPCREPOSIX */
+#endif /* HAVE_LIBPCRE2_POSIX */
 
 #include "frrstr.h"
 #include "memory.h"