libamcodec: new package
[buildroot-gz.git] / package / linknx / 0002-musl-cdefs.patch
blob59e28ca7062780ab0b2afbb4f27468321e742120
1 Do not use the non-standard <sys/cdefs.h> header
3 <sys/cdefs.h> is glibc-specific, and should be used only internally by
4 glibc, not by external libraries/programs. It is not available in all
5 standard C libraries.
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8 (Patch sent upstream: https://sourceforge.net/p/linknx/patches/21/)
10 diff -uNr linknx-0.0.1.32.org/include/eibclient.h linknx-0.0.1.32/include/eibclient.h
11 --- linknx-0.0.1.32.org/include/eibclient.h 2007-10-11 01:55:33.000000000 +0200
12 +++ linknx-0.0.1.32/include/eibclient.h 2016-01-23 23:21:17.315006629 +0100
13 @@ -27,11 +27,12 @@
14 #ifndef EIBCLIENT_H
15 #define EIBCLIENT_H
17 -#include "sys/cdefs.h"
18 #include "stdint.h"
19 #include <pthsem.h>
21 -__BEGIN_DECLS;
22 +#ifdef __cplusplus
23 +extern "C" {
24 +#endif
26 #include "eibloadresult.h"
28 @@ -705,5 +706,8 @@
30 int EIB_LoadImage_async (EIBConnection * con, const uint8_t * image, int len);
32 -__END_DECLS
33 +#ifdef __cplusplus
35 +#endif
37 #endif