www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/02/23:33:50

Message-Id: <199904030433.EAA23866@out4.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Fri, 2 Apr 1999 23:34:03 -0500
MIME-Version: 1.0
Subject: Re: patch for <sys\types.h>
CC: dj AT delorie DOT com
In-reply-to: <199904022149.QAA07854@envy.delorie.com>
References: <199904022112 DOT VAA62116 AT out4 DOT ibm DOT net> (snowball3 AT usa DOT net)
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> either.  ANSI says time_t is in <time.h>.  If we add it to
> <sys/types.h> it should go in the non-posix section.

And add FreeBSD to the list that have time_t defined in <sys/types.h>. 
You were right. While it is in the Unix spec, it's not in the Posix spec.

Here's a revised patch to put it the non-Posix section:

*** include/sys/types.h.orig	Sat Feb 22 13:06:06 1997
--- include/sys/types.h	Fri Apr  2 23:28:02 1999
***************
*** 53,58 ****
--- 53,62 ----
  #define FD_ISSET(n, p)	((p)->fd_bits[(n) / 8] & (1 << ((n) & 7)))
  #define FD_ZERO(p)	memset ((void *)(p), 0, sizeof (*(p)))
  
+ __DJ_time_t
+ #undef __DJ_time_t
+ #define __DJ_time_t
+ 
  #endif /* !_POSIX_SOURCE */
  #endif /* !__STRICT_ANSI__ */
  #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */



--- 
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019