summaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-10-14 21:33:19 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-10-14 21:33:19 +0000
commitca1c2a0bac6e3ceab5c232ab800a1085db346144 (patch)
treef09fdc5fe09ea51de5d9207775b666296f5a7b99 /compat.c
parente0f49143d3eb0519339997a0711e1d62fdd26db1 (diff)
Add support for GNU rx library for those lacking regexp support
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index 19dc76d9..71d12010 100644
--- a/compat.c
+++ b/compat.c
@@ -29,7 +29,11 @@ RCSID("$OpenBSD: compat.c,v 1.24 2000/10/10 20:20:45 markus Exp $");
#include "packet.h"
#include "xmalloc.h"
#include "compat.h"
-#include <regex.h>
+#ifdef HAVE_LIBRX
+# include <rxposix.h>
+#else /* Use native regex libraries */
+# include <regex.h>
+#endif /* HAVE_LIBRX */
int compat13 = 0;
int compat20 = 0;