From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id E5F433858426; Thu, 3 Aug 2023 08:26:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5F433858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691051206; bh=u8l++5Fm1Nbw7+LmyKuVHIlrw5PzmJ0EDi31MpVQA2M=; h=From:To:Subject:Date:From; b=lQb6sX/rcwutHZNO6mEM6IRsBbVBNV27nZnbF86MXG0hwiYlII1Ac6Xu4qzVe5KjH hSTXcrBTYPrGU6tqDc69H1Ek3WJkb34bN/Sz0ioflNsbG9w/GR3WNwI2kHO+RnFOSF ghFHBpbTWFBKHc41FZLCi79NjDMH2mktuAAb/krQ= 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] hurd: Do not include full in X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: fc72b6d7d818ab2868920af956d1542d03342a4d X-Git-Newrev: d97a12704bca5c2c326d856a69cd847c89784ae9 Message-Id: <20230803082646.E5F433858426@sourceware.org> Date: Thu, 3 Aug 2023 08:26:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d97a12704bca5c2c326d856a69cd847c89784ae9 commit d97a12704bca5c2c326d856a69cd847c89784ae9 Author: Florian Weimer Date: Mon Jul 31 12:38:12 2023 +0200 hurd: Do not include full in This fixes a hurd/check-installed-headers-c failure with -std=c89 #define _FORTIFY_SOURCE 1: In file included from ../hurd/hurd.h:354, from ../sysdeps/hurd/include/hurd.h:2, from /tmp/cih_test_9IaUwa.c:10: /home/bmg/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/13.2.1/include/stdarg.h:54:34: error: "__STDC_VERSION__" is not defined, evaluates to 0 [-Werror=undef] 54 | #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L \ | ^~~~~~~~~~~~~~~~ /home/bmg/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/13.2.1/include/stdarg.h:55:8: error: "__cplusplus" is not defined, evaluates to 0 [-Werror=undef] 55 | || __cplusplus + 0 >= 201103L | ^~~~~~~~~~~ cc1: all warnings being treated as errors Reviewed-by: Samuel Thibault Diff: --- hurd/hurd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hurd/hurd.h b/hurd/hurd.h index 06f00e93d6..a38e665676 100644 --- a/hurd/hurd.h +++ b/hurd/hurd.h @@ -350,12 +350,12 @@ extern int hurd_check_cancel (void); extern io_t __getdport (int fd), getdport (int fd); - +#define __need___va_list #include /* Write formatted output to PORT, a Mach port supporting the i/o protocol, according to the format string FORMAT, using the argument list in ARG. */ -int vpprintf (io_t port, const char *format, va_list arg); +int vpprintf (io_t port, const char *format, __gnuc_va_list arg); #endif /* hurd.h */