]> granicus.if.org Git - strace/commit
fcntl.c: use <linux/fcntl.h> instead of <fcntl.h>
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 9 Oct 2015 01:38:07 +0000 (01:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 26 Nov 2015 01:37:34 +0000 (01:37 +0000)
commit6250e6c5ed2bbb4c65f7998df8d0064aec3cf8d3
tree6db2f4432ea300a6faed80acbd57197f3a4c9c0e
parenta5ffa18f138d905639dcf09e1e4a7f7dfd6c91be
fcntl.c: use <linux/fcntl.h> instead of <fcntl.h>

Include <linux/fcntl.h> for proper definitions of F_* constants
and flock structures.

* configure.ac (AC_CHECK_TYPES): Check for struct flock, struct flock64,
struct __kernel_flock, and struct __kernel_flock64 in <linux/fcntl.h>.
* flock.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* fcntl.c: Include it instead of <fcntl.h>.
(struct flock64): Remove.
(printflock): Use struct_kernel_flock instead of struct flock.
(printflock64): Use struct_kernel_flock64 instead of struct flock64.
Makefile.am
configure.ac
fcntl.c
flock.h [new file with mode: 0644]