Patch to allow mingw32 compilation
This commit is contained in:
1 parent
9b8ec6ec5a
commit
8337f13d6c
5 files changed
+75
-17
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user