summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-02-20 23:44:56 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-02-20 23:44:56 +0000
commit7797585a077a49e4a3620d28a6061450e6d2512c (patch)
tree198ec71ebf0822a34af2a8165c44e2cc9c0eb955
parent4f28f9c0caa10a815d2d875ea41a9197c78fb92b (diff)
* 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
Diffstat (limited to '')
-rw-r--r--legacy/evil/ChangeLog9
-rw-r--r--legacy/evil/src/bin/evil_test_gettimeofday.c1
-rw-r--r--legacy/evil/src/lib/evil_inet.c9
3 files changed, 18 insertions, 1 deletions
diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog
index b0aeccdaa0..62bf3dc326 100644
--- a/legacy/evil/ChangeLog
+++ b/legacy/evil/ChangeLog
@@ -1,3 +1,12 @@
12012-02-21 Vincent Torri <doursse at users dot sf dot net>
2
3 * src/bin/evil_test_gettimeofday.c:
4 Include sys/time.h
5
6 * src/lib/evil_inet.c:
7 EMSGSIZE and EAFNOSUPPORT could not be defined on
8 some MinGW compilers.
9
12012-02-18 Vincent Torri <doursse at users dot sf dot net> 102012-02-18 Vincent Torri <doursse at users dot sf dot net>
2 11
3 * src/lib/Evil.h: 12 * src/lib/Evil.h:
diff --git a/legacy/evil/src/bin/evil_test_gettimeofday.c b/legacy/evil/src/bin/evil_test_gettimeofday.c
index 44fa79e809..49742eb5d3 100644
--- a/legacy/evil/src/bin/evil_test_gettimeofday.c
+++ b/legacy/evil/src/bin/evil_test_gettimeofday.c
@@ -4,6 +4,7 @@
4 4
5#include <string.h> 5#include <string.h>
6#include <math.h> 6#include <math.h>
7#include <sys/time.h>
7 8
8#include <Evil.h> 9#include <Evil.h>
9 10
diff --git a/legacy/evil/src/lib/evil_inet.c b/legacy/evil/src/lib/evil_inet.c
index 1b679ea808..99ce14edc2 100644
--- a/legacy/evil/src/lib/evil_inet.c
+++ b/legacy/evil/src/lib/evil_inet.c
@@ -45,8 +45,15 @@
45#define APICHAR char 45#define APICHAR char
46#include "evil_print.h" 46#include "evil_print.h"
47 47
48#ifndef EMSGSIZE
49# define EMSGSIZE WSAEMSGSIZE
50#endif
51
52#ifndef EAFNOSUPPORT
53# define EAFNOSUPPORT WSAEAFNOSUPPORT
54#endif
48 55
49# define SPRINTF(x) ((size_t)sprintf x) 56#define SPRINTF(x) ((size_t)sprintf x)
50 57
51#define ERRNO ((int)GetLastError()) 58#define ERRNO ((int)GetLastError())
52#define SET_ERRNO(x) (SetLastError((DWORD)(x))) 59#define SET_ERRNO(x) (SetLastError((DWORD)(x)))