Use Linux flock struct

Rather than defining our own structure which will conflict with
Linux's version when building 32-bit.  Simply setup a typedef
to always use the correct Linux version for both 32 ad 64-bit
builds.
This commit is contained in:
Brian Behlendorf 2011-02-20 14:02:48 -08:00
parent 914b063133
commit 5a52a782a0
1 changed files with 5 additions and 7 deletions

View File

@ -28,12 +28,10 @@
#define F_FREESP 11 #define F_FREESP 11
typedef struct flock64 { #ifdef CONFIG_64BIT
short l_type; typedef struct flock flock64_t;
short l_whence; #else
loff_t l_start; typedef struct flock64 flock64_t;
loff_t l_len; #endif /* CONFIG_64BIT */
pid_t l_pid;
} flock64_t;
#endif /* _SPL_FCNTL_H */ #endif /* _SPL_FCNTL_H */