Browse Source

Merge pull request #7905 from FelixSchwarz/py313-unistdh

Python 3.13: include `unistd.h` in `_chunker.c`
TW 1 year ago
parent
commit
0da4fff38b
1 changed files with 3 additions and 0 deletions
  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