xattr: guard against simultaneous glibc header inclusion
[sfrench/cifs-2.6.git] / include / uapi / linux / libc-compat.h
index 335e8a7cad3964562754f1f74804aff81db8a0db..c140620dad921a12bc36ac477911e12665d9a736 100644 (file)
 
 #endif /* _NETINET_IN_H */
 
+/* Definitions for xattr.h */
+#if defined(_SYS_XATTR_H)
+#define __UAPI_DEF_XATTR               0
+#else
+#define __UAPI_DEF_XATTR               1
+#endif
 
 /* If we did not see any headers from any supported C libraries,
  * or we are being included in the kernel, then define everything
 #define __UAPI_DEF_IPV6_MREQ           1
 #define __UAPI_DEF_IPPROTO_V6          1
 
+/* Definitions for xattr.h */
+#define __UAPI_DEF_XATTR               1
+
 #endif /* __GLIBC__ */
 
 #endif /* _UAPI_LIBC_COMPAT_H */