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 / 0003-portability-fixes.patch
1 From 92247401984dd9a80d9d0c8c030692323f980678 Mon Sep 17 00:00:00 2001
2 From: Emmanuel Dreyfus <manu@netbsd.org>
3 Date: Mon, 30 Jun 2014 13:06:05 +0000
4 Subject: Portability fixes
5
6 - <features.h>  is Linux specific
7 - Define __THROW for non glibc based systems
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ---
11 (limited to 'include/xattr.h')
12
13 diff --git a/include/xattr.h b/include/xattr.h
14 index 070d7c5..fd1f268 100644
15 --- a/include/xattr.h
16 +++ b/include/xattr.h
17 @@ -20,7 +20,18 @@
18  #ifndef __XATTR_H__
19  #define __XATTR_H__
20  
21 +#if defined(linux)
22  #include <features.h>
23 +#endif
24 +
25 +/* Portability non glibc c++ build systems */
26 +#ifndef __THROW
27 +# if defined __cplusplus
28 +#  define __THROW       throw ()
29 +# else
30 +#  define __THROW
31 +# endif
32 +#endif
33  
34  #include <errno.h>
35  #ifndef ENOATTR
36 --
37 cgit v0.9.0.2