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:
Florian Weimer 2022-06-29 13:50:50 +02:00
parent a3563f3f36
commit ecd0fbebc0

View File

@ -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;