blob: a38e5a2942a8c2616a159bfd2463cbcfdb7320a4 (
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/py2/psutil/_pslinux.py (index)
+++ contrib/python/psutil/py2/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/py2/psutil/arch/windows/disk.c (index)
+++ contrib/python/psutil/py2/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"
|