From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12906 invoked by alias); 21 Jan 2006 08:51:20 -0000 Received: (qmail 12889 invoked by uid 22791); 21 Jan 2006 08:51:20 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Jan 2006 08:51:18 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id C38491D102 for ; Sat, 21 Jan 2006 09:51:15 +0100 (CET) Date: Sat, 21 Jan 2006 08:51:00 -0000 From: Thorsten Kukuk To: libc-hacker@sources.redhat.com Subject: _GNU_SOURCE and sys/poll.h Message-ID: <20060121085309.GA2875@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline User-Agent: Mutt/1.5.9i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00087.txt.bz2 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 594 Hi, The following example: #define _GNU_SOURCE #include fails with the latest changes: In file included from /usr/include/sys/poll.h:32, from syspoll.c:2: /usr/include/time.h:120: error: expected specifier-qualifier-list before __time_ Attached a fix for that. Thorsten -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SUSE LINUX Products GmbH Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="glibc-2.3.90-sys_poll.diff" Content-length: 460 2006-01-21 Thorsten Kukuk * io/sys/poll.h: Define __need_time_t to get definition of time_t if __USE_GNU is defined. --- io/sys/poll.h +++ io/sys/poll.h 2006/01/21 08:49:35 @@ -27,7 +27,8 @@ #ifdef __USE_GNU /* Get the __sigset_t definition. */ # include -/* Get the timespec definition. */ +/* Get the time_t and timespec definition. */ +# define __need_time_t # define __need_timespec # include #endif --ew6BAiZeqk4r7MaW--