- Fixed: Solaris compile.

SVN r3928 (trunk)
This commit is contained in:
Braden Obrzut 2012-11-01 18:23:39 +00:00
parent 4f71176ed6
commit 1b5bff9603
3 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,7 @@
struct MapData struct MapData
{ {
struct struct MapLump
{ {
char Name[8]; char Name[8];
FileReader *Reader; FileReader *Reader;

View File

@ -8,6 +8,7 @@
#include <sys/ucontext.h> #include <sys/ucontext.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <limits.h>
#ifdef __linux__ #ifdef __linux__
#include <sys/prctl.h> #include <sys/prctl.h>

View File

@ -270,7 +270,14 @@ void I_HandleAlarm (int sig)
void I_SelectTimer() void I_SelectTimer()
{ {
SEMAPHORE_INIT(timerWait, 0, 0) SEMAPHORE_INIT(timerWait, 0, 0)
#ifndef __sun
signal(SIGALRM, I_HandleAlarm); 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; struct itimerval itv;
itv.it_interval.tv_sec = itv.it_value.tv_sec = 0; itv.it_interval.tv_sec = itv.it_value.tv_sec = 0;