Skip to content

Commit 95eef25

Browse files
committed
Fix for Python 3.13: explicitly include unistd.h
1 parent dcc6659 commit 95eef25

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/libImaging/TiffDecode.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
#include "Imaging.h"
1414

15+
#ifndef _UNISTD_H
16+
#include <unistd.h> /* lseek */
17+
#endif
18+
1519
#ifdef HAVE_LIBTIFF
1620

1721
#ifndef uint

src/libImaging/TiffDecode.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
#include <tiff.h>
1414
#endif
1515

16-
/* UNDONE -- what are we using from this? */
17-
/*#ifndef _UNISTD_H
18-
# include <unistd.h>
19-
# endif
20-
*/
21-
2216
#ifndef min
2317
#define min(x, y) ((x > y) ? y : x)
2418
#define max(x, y) ((x < y) ? y : x)

0 commit comments

Comments
 (0)