diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-06-13 21:45:31 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-05 19:21:44 +0200 |
commit | 563c693fdce1363ea6a66af9b8f73987de8b6ff9 (patch) | |
tree | c361ca91af77031afe3603c8bed9717367af3fe2 | |
parent | 01f5b511cbbc787c1235a11e10669c2fed05ef76 (diff) | |
download | buildroot-563c693fdce1363ea6a66af9b8f73987de8b6ff9.tar.gz buildroot-563c693fdce1363ea6a66af9b8f73987de8b6ff9.zip |
package/linknx: make it build with the musl C library
Fixes
http://autobuild.buildroot.net/results/c0f/c0f59d3f9eb115072d410ef199f4773f2c380d6d/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/linknx/0002-musl-cdefs.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/linknx/0002-musl-cdefs.patch b/package/linknx/0002-musl-cdefs.patch new file mode 100644 index 0000000000..59e28ca706 --- /dev/null +++ b/package/linknx/0002-musl-cdefs.patch @@ -0,0 +1,37 @@ +Do not use the non-standard <sys/cdefs.h> header + +<sys/cdefs.h> is glibc-specific, and should be used only internally by +glibc, not by external libraries/programs. It is not available in all +standard C libraries. + +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> +(Patch sent upstream: https://sourceforge.net/p/linknx/patches/21/) + +diff -uNr linknx-0.0.1.32.org/include/eibclient.h linknx-0.0.1.32/include/eibclient.h +--- linknx-0.0.1.32.org/include/eibclient.h 2007-10-11 01:55:33.000000000 +0200 ++++ linknx-0.0.1.32/include/eibclient.h 2016-01-23 23:21:17.315006629 +0100 +@@ -27,11 +27,12 @@ + #ifndef EIBCLIENT_H + #define EIBCLIENT_H + +-#include "sys/cdefs.h" + #include "stdint.h" + #include <pthsem.h> + +-__BEGIN_DECLS; ++#ifdef __cplusplus ++extern "C" { ++#endif + + #include "eibloadresult.h" + +@@ -705,5 +706,8 @@ + */ + int EIB_LoadImage_async (EIBConnection * con, const uint8_t * image, int len); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif ++ + #endif |