forked from Mirror/frr
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>
This commit is contained in:
parent
9183794425
commit
beee9b4a26
|
@ -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"
|
||||
|
|
|
@ -22,7 +22,12 @@
|
|||
#define _FRRSTR_H_
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_LIBPCREPOSIX
|
||||
#include <pcreposix.h>
|
||||
#else
|
||||
#include <regex.h>
|
||||
#endif /* HAVE_LIBPCREPOSIX */
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "vector.h"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue