The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / attr / 0002-avoid-glibc-specific-decls-defines.patch
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
5
6 This matches what we do in all the other headers.
7
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 */
17  
18 -
19 -__BEGIN_DECLS
20 +#ifdef __cplusplus
21 +extern "C" {
22 +#endif
23  
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;
29  
30 -__END_DECLS
31 +#ifdef __cplusplus
32 +}
33 +#endif
34  
35  #endif /* __XATTR_H__ */
36 --
37 cgit v0.9.0.2