public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Thorsten Kukuk <kukuk@suse.de>
To: libc-hacker@sources.redhat.com
Subject: _GNU_SOURCE and sys/poll.h
Date: Sat, 21 Jan 2006 08:51:00 -0000	[thread overview]
Message-ID: <20060121085309.GA2875@suse.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]


Hi,

The following example:

#define _GNU_SOURCE
#include <sys/poll.h>

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

[-- Attachment #2: glibc-2.3.90-sys_poll.diff --]
[-- Type: text/plain, Size: 460 bytes --]

2006-01-21  Thorsten Kukuk  <kukuk@suse.de>

	* 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 <bits/sigset.h>
-/* Get the timespec definition.  */
+/* Get the time_t and timespec definition.  */
+# define __need_time_t
 # define __need_timespec
 # include <time.h>
 #endif

             reply	other threads:[~2006-01-21  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21  8:51 Thorsten Kukuk [this message]
2006-01-21  9:26 ` Ulrich Drepper
2006-01-21  9:42   ` Thorsten Kukuk
2006-01-21 19:34     ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060121085309.GA2875@suse.de \
    --to=kukuk@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).