]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: kill compiling warning 10622/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 9 Aug 2016 08:34:21 +0000 (16:34 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 9 Aug 2016 08:34:21 +0000 (16:34 +0800)
As below:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/include/cephfs/libcephfs.h:1499:20: warning: ‘struct flock’ declared inside parameter list [enabled by default]
     Fh *fh, struct flock *fl, uint64_t owner);
                    ^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/include/cephfs/libcephfs.h:1499:20: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/jenkins-build/build/workspace/ceph-pull-requests/src/include/cephfs/libcephfs.h:1501:20: warning: ‘struct flock’ declared inside parameter list [enabled by default]
     Fh *fh, struct flock *fl, uint64_t owner, int sleep);

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/include/cephfs/libcephfs.h

index 0b8709f419e62d640a0e8f2ad4314cd0e3691da1..491fd658ba63d1c3cbdcb8c30aebdc8f15f19736 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/socket.h>
 #include <stdint.h>
 #include <stdbool.h>
+#include <fcntl.h>
 
 #ifdef __cplusplus
 extern "C" {