Skip to content

Commit 4128767

Browse files
authored
fix building posixmodule.c in old cygwin
1 parent b413bc7 commit 4128767

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Modules/posixmodule.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@
253253
# if defined(__CYGWIN__)
254254
# define USE_XATTRS
255255
# include <cygwin/limits.h> // Needed for XATTR_SIZE_MAX and XATTR_LIST_MAX.
256+
# ifndef XATTR_SIZE_MAX
257+
# define XATTR_SIZE_MAX 65536
258+
# endif
259+
# ifndef XATTR_LIST_MAX
260+
# define XATTR_LIST_MAX 65536
261+
# endif
256262
# endif
257263
#endif
258264
#ifdef USE_XATTRS

0 commit comments

Comments
 (0)