mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +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
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_GNU
|
||||||
#include <bits/types/struct_iovec.h>
|
struct iovec;
|
||||||
|
extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov,
|
||||||
/*
|
|
||||||
*/
|
|
||||||
extern __ssize_t process_madvise (int __pid_fd, const struct iovec* __iov,
|
|
||||||
size_t __count, int __advice,
|
size_t __count, int __advice,
|
||||||
unsigned __flags)
|
unsigned __flags)
|
||||||
__THROW;
|
__THROW;
|
||||||
|
Reference in New Issue
Block a user