Skip to content

Commit

Permalink
Fix for Python 3.13: explicitly include unistd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 8, 2023
1 parent dcc6659 commit 95eef25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/libImaging/TiffDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

#include "Imaging.h"

#ifndef _UNISTD_H
#include <unistd.h> /* lseek */
#endif

#ifdef HAVE_LIBTIFF

#ifndef uint
Expand Down
6 changes: 0 additions & 6 deletions src/libImaging/TiffDecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95eef25

Please sign in to comment.