浏览代码

Merge pull request #7905 from FelixSchwarz/py313-unistdh

Python 3.13: include `unistd.h` in `_chunker.c`
TW 1 年之前
父节点
当前提交
0da4fff38b
共有 1 个文件被更改,包括 3 次插入0 次删除
  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