linknx: fix musl compatibility
Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
parent
474a5bf795
commit
3cf6ae0fb1
3 changed files with 23 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=linknx
|
||||
PKG_VERSION:=0.0.1.32
|
||||
PKG_RELEASE:=6
|
||||
PKG_RELEASE:=7
|
||||
PKG_MD5SUM:=7ecc1208f59bceb05068c752b2250b63
|
||||
|
||||
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
|
||||
|
@ -18,6 +18,7 @@ PKG_LICENSE:=GPL-2.0+
|
|||
PKG_SOURCE_URL:=@SF/linknx
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_BUILD_DEPENDS:=argp-standalone
|
||||
PKG_FORTIFY_SOURCE:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
10
net/linknx/patches/010-musl-compat
Normal file
10
net/linknx/patches/010-musl-compat
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/src/eibclient.c 2007-10-11 01:55:31.000000000 +0200
|
||||
+++ b/src/eibclient.c 2015-06-27 22:18:01.433296921 +0200
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
|
11
net/linknx/patches/012-fix-linknx.cpp
Normal file
11
net/linknx/patches/012-fix-linknx.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/src/linknx.cpp 2012-06-04 22:12:13.000000000 +0200
|
||||
+++ b/src/linknx.cpp 2015-06-27 22:35:23.705721355 +0200
|
||||
@@ -136,7 +136,7 @@
|
||||
if (errno)
|
||||
printf (": %s\n", strerror (errno));
|
||||
else
|
||||
- printf ("\n", strerror (errno));
|
||||
+ printf ("\n");
|
||||
exit (1);
|
||||
}
|
||||
|
Loading…
Reference in a new issue