aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/psutil/py3/patches/01-arcadia.patch
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/psutil/py3/patches/01-arcadia.patch
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/psutil/py3/patches/01-arcadia.patch')
-rw-r--r--contrib/python/psutil/py3/patches/01-arcadia.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/python/psutil/py3/patches/01-arcadia.patch b/contrib/python/psutil/py3/patches/01-arcadia.patch
new file mode 100644
index 0000000000..54b53d1db5
--- /dev/null
+++ b/contrib/python/psutil/py3/patches/01-arcadia.patch
@@ -0,0 +1,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"
+