diff options
Diffstat (limited to 'include/asm-mips/fcntl.h')
-rw-r--r-- | include/asm-mips/fcntl.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/include/asm-mips/fcntl.h b/include/asm-mips/fcntl.h index be971d6ac9b5..fb824bf09296 100644 --- a/include/asm-mips/fcntl.h +++ b/include/asm-mips/fcntl.h | |||
@@ -50,7 +50,7 @@ struct flock { | |||
50 | long l_sysid; | 50 | long l_sysid; |
51 | __kernel_pid_t l_pid; | 51 | __kernel_pid_t l_pid; |
52 | long pad[4]; | 52 | long pad[4]; |
53 | } flock_t; | 53 | }; |
54 | 54 | ||
55 | typedef struct flock64 { | 55 | typedef struct flock64 { |
56 | short l_type; | 56 | short l_type; |
@@ -60,22 +60,13 @@ typedef struct flock64 { | |||
60 | pid_t l_pid; | 60 | pid_t l_pid; |
61 | } flock64_t; | 61 | } flock64_t; |
62 | 62 | ||
63 | #else /* 64-bit definitions */ | ||
64 | 63 | ||
65 | typedef struct flock { | 64 | #define HAVE_ARCH_STRUCT_FLOCK |
66 | short l_type; | ||
67 | short l_whence; | ||
68 | __kernel_off_t l_start; | ||
69 | __kernel_off_t l_len; | ||
70 | __kernel_pid_t l_pid; | ||
71 | } flock_t; | ||
72 | |||
73 | #ifdef __KERNEL__ | ||
74 | #define flock64 flock | ||
75 | #endif | ||
76 | 65 | ||
77 | #endif | 66 | #endif |
78 | 67 | ||
79 | #include <asm-generic/fcntl.h> | 68 | #include <asm-generic/fcntl.h> |
80 | 69 | ||
70 | typedef struct flock flock_t; | ||
71 | |||
81 | #endif /* _ASM_FCNTL_H */ | 72 | #endif /* _ASM_FCNTL_H */ |