Matthew Booth
2010-Apr-14 09:45 UTC
[Libguestfs] [PATCH] Fix build error in fuse/guestmount.c
guestmount.c: In function 'main': guestmount.c:899: error: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration] guestmount.c wasn't including locale.h. --- fuse/guestmount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index b4a917f..27a4cef 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -40,6 +40,7 @@ #include <assert.h> #include <sys/time.h> #include <sys/types.h> +#include <locale.h> #include <fuse.h> #include <guestfs.h> -- 1.6.6.1
Richard W.M. Jones
2010-Apr-14 10:13 UTC
[Libguestfs] [PATCH] Fix build error in fuse/guestmount.c
On Wed, Apr 14, 2010 at 10:45:52AM +0100, Matthew Booth wrote:> guestmount.c: In function 'main': > guestmount.c:899: error: implicit declaration of function 'setlocale' > [-Wimplicit-function-declaration] > > guestmount.c wasn't including locale.h. > --- > fuse/guestmount.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/fuse/guestmount.c b/fuse/guestmount.c > index b4a917f..27a4cef 100644 > --- a/fuse/guestmount.c > +++ b/fuse/guestmount.c > @@ -40,6 +40,7 @@ > #include <assert.h> > #include <sys/time.h> > #include <sys/types.h> > +#include <locale.h> > > #include <fuse.h> > #include <guestfs.h>Thanks, ACKed and pushed: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=c0d73e0e60b99b87855364ff346551f5ff7efccb Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
Maybe Matching Threads
- [PATCH] fuse: Add missing #include to guestmount.c
- [PATCH] fuse: Add guestmount-cleanup program to handle unmounting (RHBZ#916780).
- minor usability issue: confusing error message with guestmount + fuse errors
- RHEL 7 and guestmount of XFS volumes
- [PATCH 0/4] Provide guestmount --pid-file and document possible race when unmounting FUSE filesystems.