01-arcadia.patch 645 B

123456789101112131415161718192021222324
  1. --- contrib/python/psutil/py2/psutil/_pslinux.py (index)
  2. +++ contrib/python/psutil/py2/psutil/_pslinux.py (working tree)
  3. @@ -322,7 +322,10 @@ try:
  4. except ImportError:
  5. import ctypes
  6. - libc = ctypes.CDLL(None, use_errno=True)
  7. + try:
  8. + libc = ctypes.CDLL(None, use_errno=True)
  9. + except:
  10. + libc = None
  11. if hasattr(libc, "prlimit"):
  12. --- contrib/python/psutil/py2/psutil/arch/windows/disk.c (index)
  13. +++ contrib/python/psutil/py2/psutil/arch/windows/disk.c (working tree)
  14. @@ -7,6 +7,7 @@
  15. #include <Python.h>
  16. #include <windows.h>
  17. #include <tchar.h>
  18. +#include <winioctl.h>
  19. #include "../../_psutil_common.h"