BSD and POSIX
Finally got around to installing OpenBSD (rev 3.3) in a vmware partition. Found that several #if BSD's were inappropriate for modern BSD's. Haven't installed FreeBSD or NetBSD, but based on reading their man pages, these changes are needed there too. Mostly due to POSIX time() signature.
This commit is contained in:
@@ -521,7 +521,7 @@ E struct tm *FDECL(localtime, (const time_t *));
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
|
||||
# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
|
||||
E time_t FDECL(time, (time_t *));
|
||||
# else
|
||||
E long FDECL(time, (time_t *));
|
||||
|
||||
Reference in New Issue
Block a user