summaryrefslogtreecommitdiff
path: root/include/xattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xattr.h')
-rw-r--r--include/xattr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/xattr.h b/include/xattr.h
index 070d7c5..fd1f268 100644
--- a/include/xattr.h
+++ b/include/xattr.h
@@ -20,7 +20,18 @@
#ifndef __XATTR_H__
#define __XATTR_H__
+#if defined(linux)
#include <features.h>
+#endif
+
+/* Portability non glibc c++ build systems */
+#ifndef __THROW
+# if defined __cplusplus
+# define __THROW throw ()
+# else
+# define __THROW
+# endif
+#endif
#include <errno.h>
#ifndef ENOATTR