You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had to remove "#include <malloc.h> (used malloc() in <stdlib.h> which is already defined in game)
OS/X does not implement unnamed semaphores. sem_init(), sem_destroy(), sem_wait(), sem_post() are stubs in the OS/X libc and are not implemented (Nb/ Game compiled using these functions, but got run time error). Must use named semaphores to fix this bug.
OS/X undergoing major upgrade. Release date in a few weeks. All the above may change ?
Game printout:
--$---------------------------------------------------------------------------
Nighthawk v4.0, Copyright (C) 1997 Jason Nunn, Adelaide South Australia.
Warning: Could not load scores file '/var/tmp/nighthawk.scores'.
Warning: Could not restore preserved session '/Users/philfromadelaide/.nighthawk.preserve'.
Error: init_kb_event:sem_init()- Function not implemented
--$---------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
Points from Phil:
Had to remove "#include <malloc.h> (used malloc() in <stdlib.h> which is already defined in game)
OS/X does not implement unnamed semaphores. sem_init(), sem_destroy(), sem_wait(), sem_post() are stubs in the OS/X libc and are not implemented (Nb/ Game compiled using these functions, but got run time error). Must use named semaphores to fix this bug.
OS/X undergoing major upgrade. Release date in a few weeks. All the above may change ?
Game printout:
--$---------------------------------------------------------------------------
Nighthawk v4.0, Copyright (C) 1997 Jason Nunn, Adelaide South Australia.
Warning: Could not load scores file '/var/tmp/nighthawk.scores'.
Warning: Could not restore preserved session '/Users/philfromadelaide/.nighthawk.preserve'.
Error: init_kb_event:sem_init()- Function not implemented
--$---------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered: