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:
parent
914b063133
commit
5a52a782a0
|
@ -28,12 +28,10 @@
|
|||
|
||||
#define F_FREESP 11
|
||||
|
||||
typedef struct flock64 {
|
||||
short l_type;
|
||||
short l_whence;
|
||||
loff_t l_start;
|
||||
loff_t l_len;
|
||||
pid_t l_pid;
|
||||
} flock64_t;
|
||||
#ifdef CONFIG_64BIT
|
||||
typedef struct flock flock64_t;
|
||||
#else
|
||||
typedef struct flock64 flock64_t;
|
||||
#endif /* CONFIG_64BIT */
|
||||
|
||||
#endif /* _SPL_FCNTL_H */
|
||||
|
|
Loading…
Reference in New Issue