s3:vfs_gpfs: Fix compile error in gpfs module
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Mon, 24 Oct 2011 23:52:50 +0000 (16:52 -0700)
committerChristian Ambach <ambi@samba.org>
Thu, 16 Aug 2012 16:05:21 +0000 (18:05 +0200)
Fix this compile error by adding fcntl.h as a include that defines F_RDLCK
and F_WRLCK:

modules/gpfs.c: In function ‘set_gpfs_lease’:
modules/gpfs.c:102: error: ‘F_RDLCK’ undeclared (first use in this function)
modules/gpfs.c:102: error: (Each undeclared identifier is reported only once
modules/gpfs.c:102: error: for each function it appears in.)
modules/gpfs.c:105: error: ‘F_WRLCK’ undeclared (first use in this function)

source3/modules/gpfs.c

index 2cbf0b501ac4fa06832952a4ae9591ffa48d940e..db6025642b140d63026d8bcea176e30d958c22e9 100644 (file)
@@ -21,6 +21,7 @@
 #include "system/filesys.h"
 #include "smbd/smbd.h"
 
+#include <fcntl.h>
 #include "libcli/security/security.h"
 #include "gpfs_fcntl.h"
 #include "gpfs_gpl.h"