about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-06-29 13:50:50 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-06-29 13:50:50 +0200
commitecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839 (patch)
tree0d05f57c6ed6d336b839f8b2ef373eba91ff7199 /sysdeps/unix/sysv/linux
parenta3563f3f369878467dd74aeb360448119a7a4b41 (diff)
downloadglibc-ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839.tar.gz
glibc-ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839.tar.xz
glibc-ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839.zip
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman_ext.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman_ext.h b/sysdeps/unix/sysv/linux/bits/mman_ext.h
index 97234a7adf..5612852e64 100644
--- a/sysdeps/unix/sysv/linux/bits/mman_ext.h
+++ b/sysdeps/unix/sysv/linux/bits/mman_ext.h
@@ -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;