Yet more portability hacks.

This commit is contained in:
hpa 2001-11-12 21:44:05 +00:00
parent 01b753d213
commit 9570005ba2
3 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,10 @@
#define _XOPEN_SOURCE #define _XOPEN_SOURCE
#define __EXTENSIONS__ #define __EXTENSIONS__
/* This is necessary on glibc systems */
#define _BSD_SOURCE
#define _ISO9X_SOURCE
/* Standard includes */ /* Standard includes */
#include <stdio.h> #include <stdio.h>

View file

@ -46,6 +46,8 @@ AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(sys/filio.h) AC_CHECK_HEADERS(sys/filio.h)
AC_CHECK_HEADERS(sys/stat.h) AC_CHECK_HEADERS(sys/stat.h)
AC_CHECK_HEADERS(sys/types.h) AC_CHECK_HEADERS(sys/types.h)
dnl This is needed on some versions of FreeBSD...
AC_CHECK_HEADERS(machine/param.h)
AC_CHECK_TYPES(intmax_t) AC_CHECK_TYPES(intmax_t)
AC_CHECK_TYPES(long long) AC_CHECK_TYPES(long long)

View file

@ -21,6 +21,9 @@
#include "config.h" /* Must be included first! */ #include "config.h" /* Must be included first! */
#include "recvfrom.h" #include "recvfrom.h"
#include "tftpsubs.h" #include "tftpsubs.h"
#ifdef HAVE_MACHINE_PARAM_H
#include <machine/param.h> /* Needed on some versions of FreeBSD */
#endif
#if defined(HAVE_RECVMSG) && defined(HAVE_MSGHDR_MSG_CONTROL) #if defined(HAVE_RECVMSG) && defined(HAVE_MSGHDR_MSG_CONTROL)