From patchwork Sat Jan 27 15:56:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 25616 Received: (qmail 63955 invoked by alias); 27 Jan 2018 15:56:36 -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 63833 invoked by uid 89); 27 Jan 2018 15:56:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=1715 X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 4/7] hurd: fix warnings Date: Sat, 27 Jan 2018 16:56:26 +0100 Message-Id: <20180127155629.23644-5-samuel.thibault@ens-lyon.org> In-Reply-To: <20180127155629.23644-1-samuel.thibault@ens-lyon.org> References: <20180127155629.23644-1-samuel.thibault@ens-lyon.org> * sysdeps/generic/not-cancel.h: Include , , , , . (NOT_CANCEL_H): Add inclusion guard. --- ChangeLog | 3 +++ sysdeps/generic/not-cancel.h | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9bdd0a48bc..f9770b1554 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing a `c' variable. * resolv/res-close.c: Include . + * sysdeps/generic/not-cancel.h: Include , , + , , . + (NOT_CANCEL_H): Add inclusion guard. 2018-01-27 James Clarke diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h index 631216ee4a..19ad8cbc4c 100644 --- a/sysdeps/generic/not-cancel.h +++ b/sysdeps/generic/not-cancel.h @@ -17,6 +17,15 @@ License along with the GNU C Library; if not, see . */ +#ifndef NOT_CANCEL_H +# define NOT_CANCEL_H + +#include +#include +#include +#include +#include + /* By default we have none. Map the name to the normal functions. */ #define __open_nocancel(...) \ __open (__VA_ARGS__) @@ -44,3 +53,5 @@ __nanosleep (requested_time, remaining) #define __fcntl_nocancel(fd, cmd, ...) \ __fcntl (fd, cmd, __VA_ARGS__) + +#endif /* NOT_CANCEL_H */