• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/attr/0002-avoid-glibc-specific-decls-defines.patch
Thomas PetazzoniThomas Petazzoni committed e16796942a621 Mar 2015
Raw file
Source viewDiff to previous
 
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
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.