git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add basic support for netbsd detection.
[libguestfs.git]
/
src
/
match.c
diff --git
a/src/match.c
b/src/match.c
index
c007885
..
68b2d4b
100644
(file)
--- a/
src/match.c
+++ b/
src/match.c
@@
-20,16
+20,13
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
-#ifdef HAVE_PCRE
#include <pcre.h>
#include <pcre.h>
-#endif
#include "guestfs.h"
#include "guestfs-internal.h"
#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.
*/
/* 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;
}
return 1;
}
-
-#endif /* HAVE_PCRE */