mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Linux: Forward declaration of struct iovec for process_madvise
This maintains compatibility between <sys/mman.h> and <linux/uio.h>. Before that, the addition of process_madvise made those two header files incompatible. This has been observed resulting in a build failure in LLDB's Process/Linux/NativeRegisterContextLinux_s390x.cpp source file. Fixes commit d19ee3473d68ca0e794f3a8b7677a0983ae1342e ("linux: Add process_madvise"). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
a3563f3f36
commit
ecd0fbebc0
@ -21,11 +21,8 @@
|
||||
#endif
|
||||
|
||||
#ifdef __USE_GNU
|
||||
#include <bits/types/struct_iovec.h>
|
||||
|
||||
/*
|
||||
*/
|
||||
extern __ssize_t process_madvise (int __pid_fd, const struct iovec* __iov,
|
||||
struct iovec;
|
||||
extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov,
|
||||
size_t __count, int __advice,
|
||||
unsigned __flags)
|
||||
__THROW;
|
||||
|
Loading…
x
Reference in New Issue
Block a user