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:
Donald Sharp 2020-02-16 14:14:04 -05:00
parent 9183794425
commit beee9b4a26
4 changed files with 18 additions and 0 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -22,7 +22,11 @@
#define _ZEBRA_VTY_H
#include <sys/types.h>
#ifdef HAVE_LIBPCREPOSIX
#include <pcreposix.h>
#else
#include <regex.h>
#endif /* HAVE_LIBPCREPOSIX */
#include "thread.h"
#include "log.h"