Require PCRE library.
[libguestfs.git] / src / match.c
index c007885..68b2d4b 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
-#ifdef HAVE_PCRE
 #include <pcre.h>
-#endif
 
 #include "guestfs.h"
 #include "guestfs-internal.h"
 
-#ifdef HAVE_PCRE
-
 /* Match a regular expression which contains no captures.  Returns
  * true if it matches or false if it doesn't.
  */
@@ -123,5 +120,3 @@ guestfs___match3 (guestfs_h *g, const char *str, const pcre *re,
 
   return 1;
 }
-
-#endif /* HAVE_PCRE */