utils: Fix definition of BYTE_ORDER with MinGW
This commit is contained in:
+1
-1
@@ -618,7 +618,7 @@ AC_CHECK_FUNC([syslog], [
|
|||||||
])
|
])
|
||||||
AM_CONDITIONAL(USE_SYSLOG, [test "x$syslog" = xtrue])
|
AM_CONDITIONAL(USE_SYSLOG, [test "x$syslog" = xtrue])
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/sockio.h sys/syscall.h glob.h net/if_tun.h)
|
AC_CHECK_HEADERS(sys/sockio.h sys/syscall.h sys/param.h glob.h net/if_tun.h)
|
||||||
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
|
AC_CHECK_HEADERS(net/pfkeyv2.h netipsec/ipsec.h netinet6/ipsec.h linux/udp.h)
|
||||||
AC_CHECK_HEADERS([netinet/ip6.h linux/fib_rules.h], [], [],
|
AC_CHECK_HEADERS([netinet/ip6.h linux/fib_rules.h], [], [],
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -22,16 +22,20 @@
|
|||||||
#ifndef UTILS_H_
|
#ifndef UTILS_H_
|
||||||
#define UTILS_H_
|
#define UTILS_H_
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
|
#include <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# include "compat/windows.h"
|
# include "compat/windows.h"
|
||||||
#else
|
#else
|
||||||
# define _GNU_SOURCE
|
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <netdb.h>
|
# include <netdb.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user