linknx: fix musl compatibility

Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
Othmar Truniger
2015-06-27 22:55:51 +02:00
parent 474a5bf795
commit 3cf6ae0fb1
3 changed files with 23 additions and 1 deletions
+10
View 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
View 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);
}