this should fix the problems with building the master server on bsd systems

This commit is contained in:
Bill Currie 2002-05-13 21:53:52 +00:00
parent 2c0a20a887
commit 6240c62cec
2 changed files with 15 additions and 1 deletions

View file

@ -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");

View file

@ -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)
{ {