]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: Forward declaration of struct iovec for process_madvise
authorFlorian Weimer <fweimer@redhat.com>
Wed, 29 Jun 2022 11:50:50 +0000 (13:50 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 29 Jun 2022 11:50:50 +0000 (13:50 +0200)
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>
sysdeps/unix/sysv/linux/bits/mman_ext.h

index 97234a7adff98e9d6473d7d9cbe247ed80996915..5612852e64dafd1841b4089493d23c358b13a59c 100644 (file)
 #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;