- Added Blzut3's Solaris patch.
SVN r2070 (trunk)
This commit is contained in:
parent
3f4f0a8ae4
commit
9aa1e20c77
10 changed files with 165 additions and 6 deletions
|
|
@ -46,6 +46,9 @@
|
|||
# include <unistd.h>
|
||||
# include <netdb.h>
|
||||
# include <sys/ioctl.h>
|
||||
# ifdef __sun
|
||||
# include <fcntl.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "doomtype.h"
|
||||
|
|
@ -422,7 +425,11 @@ void StartNetwork (bool autoPort)
|
|||
// create communication socket
|
||||
mysocket = UDPsocket ();
|
||||
BindToLocalPort (mysocket, autoPort ? 0 : DOOMPORT);
|
||||
#ifndef __sun
|
||||
ioctlsocket (mysocket, FIONBIO, &trueval);
|
||||
#else
|
||||
fcntl(mysocket, F_SETFL, trueval | O_NONBLOCK);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SendAbort (void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue