@@ -107,8 +107,8 @@ corresponding Unix manual entries for more information on calls.");
107107#include <sched.h>
108108#endif
109109
110- #ifdef HAVE_ATTR_XATTR_H
111- #include <attr /xattr.h>
110+ #ifdef HAVE_SYS_XATTR_H
111+ #include <sys /xattr.h>
112112#endif
113113
114114#if defined(__FreeBSD__ ) || defined(__DragonFly__ ) || defined(__APPLE__ )
@@ -10032,7 +10032,7 @@ posix_mkfifoat(PyObject *self, PyObject *args)
1003210032}
1003310033#endif
1003410034
10035- #ifdef HAVE_ATTR_XATTR_H
10035+ #ifdef HAVE_SYS_XATTR_H
1003610036
1003710037static int
1003810038try_getxattr (const char * path , const char * name ,
@@ -10408,7 +10408,7 @@ posix_flistxattr(PyObject *self, PyObject *args)
1040810408 return listxattr_common ((const char * )(Py_uintptr_t )fd , wrap_flistxattr );
1040910409}
1041010410
10411- #endif /* HAVE_ATTR_XATTR_H */
10411+ #endif /* HAVE_SYS_XATTR_H */
1041210412
1041310413static PyMethodDef posix_methods [] = {
1041410414 {"access" , posix_access , METH_VARARGS , posix_access__doc__ },
@@ -10861,7 +10861,7 @@ static PyMethodDef posix_methods[] = {
1086110861#ifdef HAVE_MKFIFOAT
1086210862 {"mkfifoat" , posix_mkfifoat , METH_VARARGS , posix_mkfifoat__doc__ },
1086310863#endif
10864- #ifdef HAVE_ATTR_XATTR_H
10864+ #ifdef HAVE_SYS_XATTR_H
1086510865 {"setxattr" , posix_setxattr , METH_VARARGS , posix_setxattr__doc__ },
1086610866 {"lsetxattr" , posix_lsetxattr , METH_VARARGS , posix_lsetxattr__doc__ },
1086710867 {"fsetxattr" , posix_fsetxattr , METH_VARARGS , posix_fsetxattr__doc__ },
@@ -11336,7 +11336,7 @@ all_ins(PyObject *d)
1133611336#endif
1133711337#endif
1133811338
11339- #ifdef HAVE_ATTR_XATTR_H
11339+ #ifdef HAVE_SYS_XATTR_H
1134011340 if (ins (d , "XATTR_CREATE" , (long )XATTR_CREATE )) return -1 ;
1134111341 if (ins (d , "XATTR_REPLACE" , (long )XATTR_REPLACE )) return -1 ;
1134211342 if (ins (d , "XATTR_SIZE_MAX" , (long )XATTR_SIZE_MAX )) return -1 ;
0 commit comments