[Libguestfs] [PATCH libguestfs] build: include <string.h> for src/match.c's use of strlen

Jim Meyering jim at meyering.net
Fri Jun 10 09:57:20 UTC 2011


---
Hi Rich,

Without this, I got a warning (or was it an error,
maybe due to -Werror?) due to the use of strlen,
at least on F15 with bleeding edge gcc.

 src/match.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/match.c b/src/match.c
index c007885..869850c 100644
--- a/src/match.c
+++ b/src/match.c
@@ -20,6 +20,7 @@

 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>

 #ifdef HAVE_PCRE
 #include <pcre.h>
--
1.7.6.rc0.293.g40857




More information about the Libguestfs mailing list