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:
@@ -583,7 +583,7 @@ u_init()
|
||||
aligns[flags.initalign].value;
|
||||
u.ulycn = NON_PM;
|
||||
|
||||
#ifdef BSD
|
||||
#if defined(BSD) && !defined(POSIX_TYPES)
|
||||
(void) time((long *)&u.ubirthday);
|
||||
#else
|
||||
(void) time(&u.ubirthday);
|
||||
|
||||
Reference in New Issue
Block a user