python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / attr / 0002-avoid-glibc-specific-decls-defines.patch
blob8c71678cf4fae9fcffcf80f12b9decf7d5dfd39d
1 From 667137acaffb8d0cc62b47821a67a52ba0637d5c Mon Sep 17 00:00:00 2001
2 From: Mike Frysinger <vapier@gentoo.org>
3 Date: Fri, 10 Jan 2014 13:56:37 +0000
4 Subject: avoid glibc-specific DECLS defines
6 This matches what we do in all the other headers.
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 ---
10 diff --git a/include/xattr.h b/include/xattr.h
11 index 70a84be..070d7c5 100644
12 --- a/include/xattr.h
13 +++ b/include/xattr.h
14 @@ -30,8 +30,9 @@
15 #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
16 #define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
19 -__BEGIN_DECLS
20 +#ifdef __cplusplus
21 +extern "C" {
22 +#endif
24 extern int setxattr (const char *__path, const char *__name,
25 const void *__value, size_t __size, int __flags) __THROW;
26 @@ -58,6 +59,8 @@ extern int removexattr (const char *__path, const char *__name) __THROW;
27 extern int lremovexattr (const char *__path, const char *__name) __THROW;
28 extern int fremovexattr (int __filedes, const char *__name) __THROW;
30 -__END_DECLS
31 +#ifdef __cplusplus
33 +#endif
35 #endif /* __XATTR_H__ */
37 cgit v0.9.0.2