diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-08-11 10:12:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 10:12:27 -0700 |
commit | 1e70e0cb7250b8a7657bf6723aae7ea44ae21f5a (patch) | |
tree | 0553fff94e284c0472225beef26440cdd91ea453 /net | |
parent | cddb27503eff50a590416e488875a6b233c89a42 (diff) | |
parent | 95c6c66ed1fab3ca55284edcd5f142375b19b7e6 (diff) |
Merge pull request #13064 from neheb/linkn
linknx: fix compilation without sys/cdefs
Diffstat (limited to 'net')
-rw-r--r-- | net/linknx/Makefile | 2 | ||||
-rw-r--r-- | net/linknx/patches/010-cdefs.patch | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/net/linknx/Makefile b/net/linknx/Makefile index f097057b3..801dd0c7c 100644 --- a/net/linknx/Makefile +++ b/net/linknx/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=linknx PKG_VERSION:=0.0.1.38 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz PKG_SOURCE_URL:=https://codeload.github.com/linknx/linknx/tar.gz/$(PKG_VERSION)? diff --git a/net/linknx/patches/010-cdefs.patch b/net/linknx/patches/010-cdefs.patch new file mode 100644 index 000000000..971a9c740 --- /dev/null +++ b/net/linknx/patches/010-cdefs.patch @@ -0,0 +1,26 @@ +--- a/include/eibclient.h ++++ b/include/eibclient.h +@@ -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,7 @@ BCU_LOAD_RESULT EIB_LoadImage (EIBConnection * con, const uint8_t * image, + */ + int EIB_LoadImage_async (EIBConnection * con, const uint8_t * image, int len); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif + #endif |