<Molgrum> hey Spikester, i get an error trying to compile fteserver: ./release/sv_linux/sv_master.o(.text+0x644): In function `SVM_Think':
<Molgrum> : undefined reference to `WSAGetLastError' <Molgrum> collect2: ld returned 1 exit status Hopefully, this fixes that. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1433 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7fde604d13
commit
af76cf1f90
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@
|
|||
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
||||
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||
|
||||
#define qerrno WSAGetLastError()
|
||||
#else
|
||||
#define qerrno errno
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
@ -192,7 +195,7 @@ void SVM_Think(int port)
|
|||
net_message.cursize = recvfrom(svm.socketudp, net_message_buffer, sizeof(net_message_buffer)-1, 0, (struct sockaddr *)&addr, &addrlen);
|
||||
if (net_message.cursize <= 0)
|
||||
{
|
||||
addrlen = WSAGetLastError();
|
||||
addrlen = qerrno;
|
||||
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue