mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Add some #define magic for SOL_IP on BSD-based stacks.
This commit is contained in:
parent
8de4db0e2d
commit
c376ac1ebd
2 changed files with 12 additions and 0 deletions
|
@ -97,6 +97,12 @@
|
|||
#include "netmain.h"
|
||||
#include "net_udp.h"
|
||||
|
||||
#ifdef HAVE_IN_PKTINFO
|
||||
# ifndef SOL_IP // BSD-based stacks don't define this.
|
||||
# define SOL_IP IPPROTO_IP
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# undef EWOULDBLOCK
|
||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
|
|
|
@ -70,6 +70,12 @@
|
|||
|
||||
#include "qw/protocol.h"
|
||||
|
||||
#ifdef HAVE_IN_PKTINFO
|
||||
# ifndef SOL_IP // BSD-based stacks don't define this.
|
||||
# define SOL_IP IPPROTO_IP
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static void __attribute__ ((format (printf, 1, 2)))
|
||||
ma_log (const char *fmt, ...);
|
||||
|
||||
|
|
Loading…
Reference in a new issue