aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/psutil/py3/patches/01-arcadia.patch
blob: 54b53d1db5c20c1c90e0f69972af210d74b693e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- contrib/python/psutil/py3/psutil/_pslinux.py	(index)
+++ contrib/python/psutil/py3/psutil/_pslinux.py	(working tree)
@@ -322,7 +322,10 @@ try:
 except ImportError:
     import ctypes
 
-    libc = ctypes.CDLL(None, use_errno=True)
+    try:
+        libc = ctypes.CDLL(None, use_errno=True)
+    except:
+        libc = None
 
     if hasattr(libc, "prlimit"):
 
--- contrib/python/psutil/py3/psutil/arch/windows/disk.c	(index)
+++ contrib/python/psutil/py3/psutil/arch/windows/disk.c	(working tree)
@@ -7,6 +7,7 @@
 #include <Python.h>
 #include <windows.h>
 #include <tchar.h>
+#include <winioctl.h>
 
 #include "../../_psutil_common.h"