Merge pull request #1429 from jow-/sysstat-musl-compat
authorLuka Perkov <luka.perkov@sartura.hr>
Thu, 18 Jun 2015 21:48:30 +0000 (23:48 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Thu, 18 Jun 2015 21:48:30 +0000 (23:48 +0200)
sysstat: fix musl compatibility

utils/sysstat/Makefile
utils/sysstat/patches/100-musl-compat.patch [new file with mode: 0644]

index 0c463815d75afb1410daa0e0e900153dd654eaf0..3e9457b2585b809b32c4af1584cb8af21337e4cc 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sysstat
 PKG_VERSION:=11.0.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_LICENSE:=GPL-2.0
 PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
diff --git a/utils/sysstat/patches/100-musl-compat.patch b/utils/sysstat/patches/100-musl-compat.patch
new file mode 100644 (file)
index 0000000..06c7813
--- /dev/null
@@ -0,0 +1,30 @@
+--- a/sa_common.c
++++ b/sa_common.c
+@@ -28,6 +28,7 @@
+ #include <dirent.h>
+ #include <fcntl.h>
+ #include <libgen.h>
++#include <limits.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+--- a/common.c
++++ b/common.c
+@@ -30,6 +30,7 @@
+ #include <dirent.h>
+ #include <ctype.h>
+ #include <libgen.h>
++#include <limits.h>
+ #include "version.h"
+ #include "common.h"
+--- a/ioconf.c
++++ b/ioconf.c
+@@ -27,6 +27,7 @@
+ #include <errno.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
++#include <sys/types.h>
+ #include "ioconf.h"
+ #include "common.h"