summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2011-10-24 16:52:50 -0700
committerChristian Ambach <ambi@samba.org>2012-08-16 18:05:21 +0200
commita8b583089bfa2d4f7f9f4d0aba0f0640ef1ad959 (patch)
treeca06780fd39ced0744193e486071d291aa7448ce
parent56fc7bc661bcea0a63d28efdd50c345715ea21bd (diff)
downloadsamba-a8b583089bfa2d4f7f9f4d0aba0f0640ef1ad959.tar.gz
samba-a8b583089bfa2d4f7f9f4d0aba0f0640ef1ad959.tar.bz2
samba-a8b583089bfa2d4f7f9f4d0aba0f0640ef1ad959.zip
s3:vfs_gpfs: Fix compile error in gpfs module
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)
-rw-r--r--source3/modules/gpfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c
index 2cbf0b501a..db6025642b 100644
--- a/source3/modules/gpfs.c
+++ b/source3/modules/gpfs.c
@@ -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"