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
This commit is contained in:
Felix Schwarz 2023-11-05 11:48:16 +01:00
parent d25cc1b0d1
commit c350c1b36d
1 changed files with 3 additions and 0 deletions

View File

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