Dmitry V. Levin | 6250e6c | 2015-10-09 01:38:07 +0000 | [diff] [blame] | 1 | #include <linux/fcntl.h> |
| 2 | |
| 3 | #if defined HAVE_STRUCT_FLOCK |
| 4 | typedef struct flock struct_kernel_flock; |
| 5 | #elif defined HAVE_STRUCT___KERNEL_FLOCK |
| 6 | typedef struct __kernel_flock struct_kernel_flock; |
| 7 | #else |
| 8 | # error struct flock definition not found in <linux/fcntl.h> |
| 9 | #endif |
| 10 | |
| 11 | #if defined HAVE_STRUCT_FLOCK64 |
| 12 | typedef struct flock64 struct_kernel_flock64; |
| 13 | #elif defined HAVE_STRUCT___KERNEL_FLOCK64 |
| 14 | typedef struct __kernel_flock64 struct_kernel_flock64; |
| 15 | #else |
| 16 | # error struct flock64 definition not found in <linux/fcntl.h> |
| 17 | #endif |