Przeglądaj źródła

include unistd.h in _chunker.c

With Python 3.13, Python.h no longer includes the <unistd.h> standard header file:
https://docs.python.org/3.13/whatsnew/3.13.html#id8
Felix Schwarz 1 rok temu
rodzic
commit
c350c1b36d
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/borg/_chunker.c

+ 3 - 0
src/borg/_chunker.c

@@ -1,5 +1,8 @@
 #include <Python.h>
 #include <fcntl.h>
+#if !defined(_MSC_VER)
+#   include <unistd.h>
+#endif
 
 /* Cyclic polynomial / buzhash