utils: Fix definition of BYTE_ORDER with MinGW

This commit is contained in:
Tobias Brunner
2016-08-24 10:40:57 +02:00
parent 22b839e6e9
commit 603a1d3c8f
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -22,16 +22,20 @@
#ifndef UTILS_H_
#define UTILS_H_
#define _GNU_SOURCE
#include <sys/types.h>
#include <stdlib.h>
#include <stddef.h>
#include <sys/time.h>
#include <string.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef WIN32
# include "compat/windows.h"
#else
# define _GNU_SOURCE
# include <arpa/inet.h>
# include <sys/socket.h>
# include <netdb.h>