mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 01:51:37 +00:00
some fixes to make quakeforge build on solaris. not quite done yet as the
server doesn't get linked with the network libs yet. .gitignore: add quakeforge-*.tar.gz (I'm tired of seeing that with ? :) include/Makefile.am: forgot to add the new x11 related headers source/makefile.am: move snd_dma.c from cient sources to snd lib and add snd_null.c source/cl_sys_unix.c: replace FNDELAY with O_NONBLOCK
This commit is contained in:
parent
08ae0f5305
commit
43b5a87fbd
6 changed files with 132 additions and 9 deletions
|
@ -118,7 +118,7 @@ void Sys_Printf (char *fmt, ...)
|
|||
void Sys_Quit (void)
|
||||
{
|
||||
Host_Shutdown();
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ void Sys_Error (char *error, ...)
|
|||
char string[1024];
|
||||
|
||||
// change stdin to non blocking
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
|
||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
|
||||
|
||||
va_start (argptr, error);
|
||||
vsnprintf (string, sizeof(string), error, argptr);
|
||||
|
@ -243,7 +243,7 @@ int main (int c, char **v)
|
|||
|
||||
noconinput = COM_CheckParm("-noconinput");
|
||||
if (!noconinput)
|
||||
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
|
||||
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
|
||||
if (COM_CheckParm("-nostdout")) Cvar_Set(sys_nostdout, "1");
|
||||
|
||||
Host_Init(&parms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue