This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _GNU_SOURCE and sys/poll.h


On Sat, Jan 21, Ulrich Drepper wrote:

> Thorsten Kukuk wrote:
> > Attached a fix for that.
> 
> No.  This should not be necessary.  <time.h> must be adjusted.

This works for me, too:

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

	* time/time.h: declare time_t if __need_timespec is defined.

--- time/time.h
+++ time/time.h	2006/01/21 09:42:09
@@ -66,7 +66,8 @@
 #endif /* clock_t not defined and <time.h> or need clock_t.  */
 #undef	__need_clock_t
 
-#if !defined __time_t_defined && (defined _TIME_H || defined __need_time_t)
+#if !defined __time_t_defined && \
+   (defined _TIME_H || defined __need_time_t || defined __need_timespec)
 # define __time_t_defined	1
 
 # include <bits/types.h>


-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]