perl-cross: bump to version 1.1.4
[buildroot-gz.git] / package / attr / 0003-portability-fixes.patch
blobc5dc8c865ba6f29a51abf334d5958d8993eabc15
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
6 - <features.h> is Linux specific
7 - Define __THROW for non glibc based systems
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ---
11 (limited to 'include/xattr.h')
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__
21 +#if defined(linux)
22 #include <features.h>
23 +#endif
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
34 #include <errno.h>
35 #ifndef ENOATTR
37 cgit v0.9.0.2