Mail Archives: djgpp-workers/1999/04/02/23:33:50
> 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 -