mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed: Solaris compile.
SVN r3928 (trunk)
This commit is contained in:
parent
4f71176ed6
commit
1b5bff9603
3 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
struct MapData
|
||||
{
|
||||
struct
|
||||
struct MapLump
|
||||
{
|
||||
char Name[8];
|
||||
FileReader *Reader;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <sys/ucontext.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/prctl.h>
|
||||
|
|
|
@ -270,7 +270,14 @@ void I_HandleAlarm (int sig)
|
|||
void I_SelectTimer()
|
||||
{
|
||||
SEMAPHORE_INIT(timerWait, 0, 0)
|
||||
#ifndef __sun
|
||||
signal(SIGALRM, I_HandleAlarm);
|
||||
#else
|
||||
struct sigaction alrmaction;
|
||||
sigaction(SIGALRM, NULL, &alrmaction);
|
||||
alrmaction.sa_handler = I_HandleAlarm;
|
||||
sigaction(SIGALRM, &alrmaction, NULL);
|
||||
#endif
|
||||
|
||||
struct itimerval itv;
|
||||
itv.it_interval.tv_sec = itv.it_value.tv_sec = 0;
|
||||
|
|
Loading…
Reference in a new issue