mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +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 MapData
|
||||||
{
|
{
|
||||||
struct
|
struct MapLump
|
||||||
{
|
{
|
||||||
char Name[8];
|
char Name[8];
|
||||||
FileReader *Reader;
|
FileReader *Reader;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue