Fix the following compile error
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 17 Nov 2011 11:36:38 +0000 (12:36 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 9 Dec 2011 15:16:45 +0000 (16:16 +0100)
fusermount.c: In function 'clone_newns':
fusermount.c:315:2: warning: implicit declaration of function 'clone' [-Wimplicit-function-declaration]
fusermount.c:315:44: error: 'CLONE_NEWNS' undeclared (first use in this function)
fusermount.c:315:44: note: each undeclared identifier is reported only once for each function it appears in
fusermount.c:317:1: warning: control reaches end of non-void function [-Wreturn-type]

util/fusermount.c

index 70c18b783186f189e91ca7471843f4db642394c9..6855b7e6c6e6f197e4eb81a9bc230923ded52afa 100644 (file)
@@ -7,6 +7,7 @@
 */
 /* This program does the mounting and unmounting of FUSE filesystems */
 
+#define _GNU_SOURCE /* for clone */
 #include <config.h>
 
 #include "mount_util.h"