mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
this should fix the problems with building the master server on bsd systems
This commit is contained in:
parent
2c0a20a887
commit
6240c62cec
2 changed files with 15 additions and 1 deletions
14
configure.ac
14
configure.ac
|
@ -269,6 +269,20 @@ AC_TRY_COMPILE(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if test "x$ac_cv_header_sys_uio_h" = xyes; then
|
||||||
|
AC_MSG_CHECKING(for struct in_pktinfo)
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <sys/uio.h>],
|
||||||
|
[struct in_pktinfo x;],
|
||||||
|
AC_DEFINE(HAVE_IN_PKTINFO, 1, [Define this if your system has struct in_pktinfo])
|
||||||
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(for underscore prefix in names)
|
AC_MSG_CHECKING(for underscore prefix in names)
|
||||||
AC_TRY_LINK(
|
AC_TRY_LINK(
|
||||||
[asm(".long _bar");
|
[asm(".long _bar");
|
||||||
|
|
|
@ -66,7 +66,7 @@ static const char rcsid[] =
|
||||||
|
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_UIO_H
|
#ifdef HAVE_IN_PKTINFO
|
||||||
static int
|
static int
|
||||||
qf_sendmsg (int sock, void *data, size_t len, struct msghdr *msghdr)
|
qf_sendmsg (int sock, void *data, size_t len, struct msghdr *msghdr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue