diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-16 14:14:04 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-16 14:14:04 -0500 |
| commit | beee9b4a26419a6a40194c24a8c2abc2cfdd371e (patch) | |
| tree | 4cdde385c016e9bf0466ba6f732784ef79a7fc91 /lib/vty.c | |
| parent | 918379442516acc1d1b0c827bc0aa8beef672725 (diff) | |
lib: Fix so that `--enable-pcreposix` actually compiles
The `--enable-pcreposix` configure option was not actually compiling
properly. Follow pre-existing pattern for inclusion of regex.h
or the pcreposix.h header.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/vty.c')
| -rw-r--r-- | lib/vty.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,7 +23,12 @@ #include <lib/version.h> #include <sys/types.h> +#include <sys/types.h> +#ifdef HAVE_LIBPCREPOSIX +#include <pcreposix.h> +#else #include <regex.h> +#endif /* HAVE_LIBPCREPOSIX */ #include <stdio.h> #include "linklist.h" |
