- 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
struct MapLump
{
char Name[8];
FileReader *Reader;

View file

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

View file

@ -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;