• 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/bcusdk/0001-Do-not-use-the-non-standard-sys-cdefs.h-header.patch
Thomas PetazzoniThomas Petazzoni committed feaa241ce3508 Aug 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From c36db3f798bf576f42d81a0c51198b17d7112e8c Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Sat, 8 Aug 2015 17:43:28 +0200
4
Subject: [PATCH] Do not use the non-standard <sys/cdefs.h> header
5
​
6
<sys/cdefs.h> is glibc-specific, and should be used only internally by
7
glibc, not by external libraries/programs. It is not available in all
8
standard C libraries.
9
​
10
Submitted upstream: https://sourceforge.net/p/bcusdk/patches/3/
11
​
12
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13
---
14
 eibd/include/eibclient.h | 11 ++++++++---
15
 1 file changed, 8 insertions(+), 3 deletions(-)
16
​
17
diff --git a/eibd/include/eibclient.h b/eibd/include/eibclient.h
18
index 2781878..b095a1c 100644
19
--- a/eibd/include/eibclient.h
20
+++ b/eibd/include/eibclient.h
21
@@ -27,10 +27,11 @@
22
 #ifndef EIBCLIENT_H
23
 #define EIBCLIENT_H
24
 
25
-#include <sys/cdefs.h>
26
 #include <stdint.h>
27
 
28
-__BEGIN_DECLS;
29
+#ifdef __cplusplus
30
+extern "C" {
31
+#endif
32
 
33
 #include "eibloadresult.h"
34
 
35
@@ -889,5 +890,9 @@ int EIB_Cache_LastUpdates_async (EIBConnection * con, uint16_t start,
36
                 uint16_t * end);
37
 
38
 
39
-__END_DECLS
40
+
41
+#ifdef __cplusplus
42
+}
43
+#endif
44
+
45
 #endif
46
-- 
47
2.5.0
48
​
  • 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.