forked from mirrors/tftp-hpa-google
Yet more portability hacks.
This commit is contained in:
parent
01b753d213
commit
9570005ba2
3 changed files with 9 additions and 0 deletions
4
config.h
4
config.h
|
@ -26,6 +26,10 @@
|
|||
#define _XOPEN_SOURCE
|
||||
#define __EXTENSIONS__
|
||||
|
||||
/* This is necessary on glibc systems */
|
||||
#define _BSD_SOURCE
|
||||
#define _ISO9X_SOURCE
|
||||
|
||||
/* Standard includes */
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -46,6 +46,8 @@ AC_CHECK_HEADERS(unistd.h)
|
|||
AC_CHECK_HEADERS(sys/filio.h)
|
||||
AC_CHECK_HEADERS(sys/stat.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(long long)
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
#include "config.h" /* Must be included first! */
|
||||
#include "recvfrom.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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue