Patch to allow mingw32 compilation

This commit is contained in:
Adam Stokes authored and Doug MacEachern committed 2011-04-11 11:26:32 -07:00
1 parent 9b8ec6ec5a
commit 8337f13d6c
5 files changed
+75 -17

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#if defined(_WIN32)
#if defined(MSVC)
#include <WinError.h>
#endif
@@ -85,7 +85,7 @@ TEST(test_sigar_file_system_list_get) {
} else {
switch (ret) {
/* track the expected error code */
#if defined(_WIN32)
#if defined(MSVC)
case ERROR_NOT_READY:
break;
#endif
+2 -2
View File
@@ -39,7 +39,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#if defined(_WIN32)
#if defined(MSVC)
#include <WinError.h>
#endif
@@ -127,7 +127,7 @@ TEST(test_sigar_proc_list_get) {
switch (ret) {
case EPERM:
case ESRCH:
#if (defined(_WIN32))
#if (defined(MSVC))
/* OpenProcess() may return ERROR_ACCESS_DENIED */
case ERROR_ACCESS_DENIED:
#endif