浏览代码

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 年之前
父节点
当前提交
c350c1b36d
共有 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