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 ENFILE:
|
||||||
case ENOBUFS:
|
case ENOBUFS:
|
||||||
case ENOMEM:
|
case ENOMEM:
|
||||||
|
#ifdef ENOSR
|
||||||
case ENOSR:
|
case ENOSR:
|
||||||
|
#endif
|
||||||
// Serious problems, but future connections may still
|
// Serious problems, but future connections may still
|
||||||
// be possible.
|
// be possible.
|
||||||
log_add(log_Warning, "accept() reported '%s'\n",
|
log_add(log_Warning, "accept() reported '%s'\n",
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||||
# include <netinet/in_systm.h>
|
# include <netinet/in_systm.h>
|
||||||
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user