From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 8AB633854153; Wed, 29 Jun 2022 11:55:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AB633854153 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] Linux: Forward declaration of struct iovec for process_madvise X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: a3563f3f369878467dd74aeb360448119a7a4b41 X-Git-Newrev: ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839 Message-Id: <20220629115520.8AB633854153@sourceware.org> Date: Wed, 29 Jun 2022 11:55:20 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 11:55:20 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839 commit ecd0fbebc0ce2818ac87ca1ed2ce46a733e8c839 Author: Florian Weimer Date: Wed Jun 29 13:50:50 2022 +0200 Linux: Forward declaration of struct iovec for process_madvise This maintains compatibility between and . 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 Diff: --- sysdeps/unix/sysv/linux/bits/mman_ext.h | 7 ++----- 1 file 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 - -/* - */ -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;