* src/bin/evil_test_gettimeofday.c:
authorVincent Torri <vincent.torri@gmail.com>
Mon, 20 Feb 2012 23:44:56 +0000 (23:44 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Mon, 20 Feb 2012 23:44:56 +0000 (23:44 +0000)
Include sys/time.h
* src/lib/evil_inet.c:
EMSGSIZE and EAFNOSUPPORT could not be defined on
some MinGW compilers.

SVN revision: 68175

legacy/evil/ChangeLog
legacy/evil/src/bin/evil_test_gettimeofday.c
legacy/evil/src/lib/evil_inet.c

index b0aeccd..62bf3dc 100644 (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:
index 44fa79e..49742eb 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <string.h>
 #include <math.h>
+#include <sys/time.h>
 
 #include <Evil.h>
 
index 1b679ea..99ce14e 100644 (file)
 #define APICHAR char
 #include "evil_print.h"
 
+#ifndef EMSGSIZE
+# define EMSGSIZE WSAEMSGSIZE
+#endif
+
+#ifndef EAFNOSUPPORT
+# define EAFNOSUPPORT WSAEAFNOSUPPORT
+#endif
 
-# define SPRINTF(x) ((size_t)sprintf x)
+#define SPRINTF(x) ((size_t)sprintf x)
 
 #define ERRNO         ((int)GetLastError())
 #define SET_ERRNO(x)  (SetLastError((DWORD)(x)))