Skip to content

Commit c350c1b

Browse files
committed
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
1 parent d25cc1b commit c350c1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/borg/_chunker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include <Python.h>
22
#include <fcntl.h>
3+
#if !defined(_MSC_VER)
4+
# include <unistd.h>
5+
#endif
36

47
/* Cyclic polynomial / buzhash
58

0 commit comments

Comments
 (0)