Jim Meyering
2011-Jun-10 09:57 UTC
[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
Richard W.M. Jones
2011-Jun-10 11:33 UTC
[Libguestfs] [PATCH libguestfs] build: include <string.h> for src/match.c's use of strlen
I don't know why, but I've been using Rawhide recently and didn't spot this. Anyway, I pushed it, thanks! Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top