Fix compilation on FreeBSD.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2583 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -377,7 +377,9 @@ acceptSingleConnection(ListenState *listenState, NetDescriptor *nd) {
|
||||
case ENFILE:
|
||||
case ENOBUFS:
|
||||
case ENOMEM:
|
||||
#ifdef ENOSR
|
||||
case ENOSR:
|
||||
#endif
|
||||
// Serious problems, but future connections may still
|
||||
// be possible.
|
||||
log_add(log_Warning, "accept() reported '%s'\n",
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <netdb.h>
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
# include <netinet/in_systm.h>
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
Reference in New Issue
Block a user