Fix for Python 3.13: explicitly include unistd.h

This commit is contained in:
Hugo van Kemenade 2023-11-08 17:07:17 +02:00
parent dcc66597f0
commit 95eef25aca
2 changed files with 4 additions and 6 deletions

View File

@ -12,6 +12,10 @@
#include "Imaging.h"
#ifndef _UNISTD_H
#include <unistd.h> /* lseek */
#endif
#ifdef HAVE_LIBTIFF
#ifndef uint

View File

@ -13,12 +13,6 @@
#include <tiff.h>
#endif
/* UNDONE -- what are we using from this? */
/*#ifndef _UNISTD_H
# include <unistd.h>
# endif
*/
#ifndef min
#define min(x, y) ((x > y) ? y : x)
#define max(x, y) ((x < y) ? y : x)