diff options
Diffstat (limited to 'bgpd/bgp_regex.h')
-rw-r--r-- | bgpd/bgp_regex.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bgpd/bgp_regex.h b/bgpd/bgp_regex.h index 176b65a1..9fc83222 100644 --- a/bgpd/bgp_regex.h +++ b/bgpd/bgp_regex.h @@ -23,11 +23,15 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include <zebra.h> -#ifdef HAVE_GNU_REGEX -#include <regex.h> +#ifdef HAVE_LIBPCREPOSIX +# include <pcreposix.h> #else -#include "regex-gnu.h" -#endif /* HAVE_GNU_REGEX */ +# ifdef HAVE_GNU_REGEX +# include <regex.h> +# else +# include "regex-gnu.h" +# endif /* HAVE_GNU_REGEX */ +#endif /* HAVE_LIBPCREPOSIX */ extern void bgp_regex_free (regex_t *regex); extern regex_t *bgp_regcomp (const char *str); |