packages/utils/sysstat/patches/100-musl-compat.patch
Jo-Philipp Wich 431ad5f682 sysstat: fix musl compatibility
Add missing `limits.h` and `sys/types.h` includes to the appropriate
source files.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-18 20:42:37 +02:00

30 lines
542 B
Diff

--- 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"