[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]