2 * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3 * Copyright (c) 2015-2018 The strace developers.
6 * SPDX-License-Identifier: LGPL-2.1-or-later
10 # define STRACE_FLOCK_H
12 # include <linux/fcntl.h>
14 # if defined HAVE_STRUCT_FLOCK
15 typedef struct flock struct_kernel_flock;
16 # elif defined HAVE_STRUCT___KERNEL_FLOCK
17 typedef struct __kernel_flock struct_kernel_flock;
19 # error struct flock definition not found in <linux/fcntl.h>
22 # if defined HAVE_STRUCT_FLOCK64
23 typedef struct flock64 struct_kernel_flock64;
24 # elif defined HAVE_STRUCT___KERNEL_FLOCK64
25 typedef struct __kernel_flock64 struct_kernel_flock64;
27 # error struct flock64 definition not found in <linux/fcntl.h>
30 #endif /* !STRACE_FLOCK_H */