mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03: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 d19ee3473d
("linux: Add process_madvise").
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user