On Sat, Apr 11, 2015 at 08:36:27PM -0700, Shawn Landden wrote:
> Package: libattr1-dev
> Version: 1:2.4.47-2
> Severity: important
> Tags: patch upstream
>
> <attr/xattr.h> uses glibc internal declarations (__BEGIN_DECL and __THROW)
> which means it can't be build for other libcs. Patch attached.
Here is the patch:
--- a/include/xattr.h 2014-09-08 14:48:10.000000000 -0700
+++ b/include/xattr.h 2015-04-11 20:30:18.525078800 -0700
@@ -31,7 +31,13 @@
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
-__BEGIN_DECLS
+#ifndef __THROW
+# define __THROW
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
extern int setxattr (const char *__path, const char *__name,
const void *__value, size_t __size, int __flags) __THROW;
@@ -58,6 +64,8 @@
extern int lremovexattr (const char *__path, const char *__name) __THROW;
extern int fremovexattr (int __filedes, const char *__name) __THROW;
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* __XATTR_H__ */
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]