Jim Meyering
2011-Apr-13 11:15 UTC
[Libguestfs] [PATCH libguestfs] add more missing include directives
I'm going one patch per directory. There are still more. If you'd prefer, I'll put this and all remaining changes in one commit.>From eb396e5e2187055e6312ac7df7cad6f273e37c92 Mon Sep 17 00:00:00 2001From: Jim Meyering <meyering at redhat.com> Date: Wed, 13 Apr 2011 13:13:34 +0200 Subject: [PATCH libguestfs] add more missing include directives * cat/virt-cat.c: Include string.h and libintl.h. * cat/virt-filesystems.c: Likewise. * cat/virt-ls.c: Likewise. --- cat/virt-cat.c | 4 +++- cat/virt-filesystems.c | 4 +++- cat/virt-ls.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cat/virt-cat.c b/cat/virt-cat.c index dca9ef4..06bd8b1 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -1,5 +1,5 @@ /* virt-cat - * Copyright (C) 2010 Red Hat Inc. + * Copyright (C) 2010-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,11 +20,13 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <inttypes.h> #include <unistd.h> #include <getopt.h> #include <locale.h> #include <assert.h> +#include <libintl.h> #include "progname.h" diff --git a/cat/virt-filesystems.c b/cat/virt-filesystems.c index c6d52ac..10084de 100644 --- a/cat/virt-filesystems.c +++ b/cat/virt-filesystems.c @@ -1,5 +1,5 @@ /* virt-filesystems - * Copyright (C) 2010 Red Hat Inc. + * Copyright (C) 2010-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,6 +26,8 @@ #include <getopt.h> #include <locale.h> #include <assert.h> +#include <string.h> +#include <libintl.h> #include "c-ctype.h" #include "human.h" diff --git a/cat/virt-ls.c b/cat/virt-ls.c index e2700d2..b510f9a 100644 --- a/cat/virt-ls.c +++ b/cat/virt-ls.c @@ -1,5 +1,5 @@ /* virt-ls - * Copyright (C) 2010 Red Hat Inc. + * Copyright (C) 2010-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,6 +26,8 @@ #include <fcntl.h> #include <locale.h> #include <assert.h> +#include <string.h> +#include <libintl.h> #include "progname.h" -- 1.7.5.rc1.228.g86d60b