aboutsummaryrefslogtreecommitdiffstats
path: root/bioniccompat/include/sys/xattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'bioniccompat/include/sys/xattr.h')
-rw-r--r--bioniccompat/include/sys/xattr.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/bioniccompat/include/sys/xattr.h b/bioniccompat/include/sys/xattr.h
index 77674ca..fc31abb 100644
--- a/bioniccompat/include/sys/xattr.h
+++ b/bioniccompat/include/sys/xattr.h
@@ -17,11 +17,10 @@
#ifndef SYS_XATTR_H
#define SYS_XATTR_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <errno.h>
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
#ifndef ENOATTR
#define ENOATTR ENODATA
@@ -52,8 +51,6 @@ inline int removexattr(const char *path __UNUSED, const char *name __UNUSED) {
return -1;
}
-#ifdef __cplusplus
-}
-#endif
+__END_DECLS
#endif // SYS_XATTR_H