From patchwork Fri Mar 6 13:00:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 38449 Received: (qmail 93486 invoked by alias); 6 Mar 2020 13:00:40 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 93316 invoked by uid 89); 6 Mar 2020 13:00:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=kernels X-HELO: mail-qt1-f179.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=SxcKzJYgigZa91lz9CjEAdGlzqicHPGyKaGpXGaISQk=; b=CSgrpLit1Hz1Xd63wzRkv5+B0anZSAK0A84JwlosFqRitbIQZyei5CTGTas1x8j5le df35CwjmKkWYhPjr4+00TQlv9BA7vD/dZSWYdHtZ+zK/Poa4GMEY3v0P3tQZP7bae4pX +iJxnlH5tHXcBxd2dtZZMHbTJpWgxV83vNL/TniVFPvTmmm79xMUv7+NcWp6eQmUwO+f OgIqb/7lsRa1ZqS8Dvgn72YirpRa3QhKbSVGXnGA2AJh5H89fxZRONSossTLjWrqMCKn C5HAA7lF2QtNmKSIKNARVUxZh/Oilm2BITUIwhTBw3/BgTqDFeXoI9AiBmQ0LM0f9Y/3 GzEg== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] linux/sysipc: Include linux/posix_types.h for __kernel_mode_t Date: Fri, 6 Mar 2020 10:00:08 -0300 Message-Id: <20200306130008.9178-1-adhemerval.zanella@linaro.org> The posix_types.h (where __kernel_mode_t is defined) is included implicitly, which might not happen on older kernels. --- sysdeps/unix/sysv/linux/msgctl.c | 1 + sysdeps/unix/sysv/linux/semctl.c | 1 + sysdeps/unix/sysv/linux/shmctl.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/msgctl.c b/sysdeps/unix/sysv/linux/msgctl.c index eb28835b3a..fd46aec1a0 100644 --- a/sysdeps/unix/sysv/linux/msgctl.c +++ b/sysdeps/unix/sysv/linux/msgctl.c @@ -21,6 +21,7 @@ #include #include #include +#include /* For __kernel_mode_t. */ #ifndef DEFAULT_VERSION # ifndef __ASSUME_SYSVIPC_BROKEN_MODE_T diff --git a/sysdeps/unix/sysv/linux/semctl.c b/sysdeps/unix/sysv/linux/semctl.c index 0a79e8e4f5..30571af49f 100644 --- a/sysdeps/unix/sysv/linux/semctl.c +++ b/sysdeps/unix/sysv/linux/semctl.c @@ -22,6 +22,7 @@ #include #include #include +#include /* For __kernel_mode_t. */ /* Define a `union semun' suitable for Linux here. */ union semun diff --git a/sysdeps/unix/sysv/linux/shmctl.c b/sysdeps/unix/sysv/linux/shmctl.c index aed9e5260e..f41b359b8b 100644 --- a/sysdeps/unix/sysv/linux/shmctl.c +++ b/sysdeps/unix/sysv/linux/shmctl.c @@ -22,6 +22,7 @@ #include #include #include +#include /* For __kernel_mode_t. */ #ifndef DEFAULT_VERSION # ifndef __ASSUME_SYSVIPC_BROKEN_MODE_T