* src/bin/evil_test_gettimeofday.c:

Include sys/time.h
	* src/lib/evil_inet.c:
	EMSGSIZE and EAFNOSUPPORT could not be defined on
	some MinGW compilers.



SVN revision: 68175
This commit is contained in:
Vincent Torri 2012-02-20 23:44:56 +00:00
parent 4f28f9c0ca
commit 7797585a07
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2012-02-21 Vincent Torri <doursse at users dot sf dot net>
* src/bin/evil_test_gettimeofday.c:
Include sys/time.h
* src/lib/evil_inet.c:
EMSGSIZE and EAFNOSUPPORT could not be defined on
some MinGW compilers.
2012-02-18 Vincent Torri <doursse at users dot sf dot net>
* src/lib/Evil.h:

View File

@ -4,6 +4,7 @@
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <Evil.h>

View File

@ -45,8 +45,15 @@
#define APICHAR char
#include "evil_print.h"
#ifndef EMSGSIZE
# define EMSGSIZE WSAEMSGSIZE
#endif
# define SPRINTF(x) ((size_t)sprintf x)
#ifndef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
#define SPRINTF(x) ((size_t)sprintf x)
#define ERRNO ((int)GetLastError())
#define SET_ERRNO(x) (SetLastError((DWORD)(x)))