lcd4linux: Add limits header for PATH_MAX
authorRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:34:44 +0000 (23:34 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:36:07 +0000 (23:36 -0800)
Fixes compilation on musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/lcd4linux/Makefile
utils/lcd4linux/patches/200-musl.patch [new file with mode: 0644]

index 2622d63365e1fe6af58bb4dc96c9ab0b4e48a0c5..b353bc14ea05f40b8b831165abebe264bbde6d3f 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lcd4linux
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux
diff --git a/utils/lcd4linux/patches/200-musl.patch b/utils/lcd4linux/patches/200-musl.patch
new file mode 100644 (file)
index 0000000..024babe
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/plugin_i2c_sensors.c
++++ b/plugin_i2c_sensors.c
+@@ -68,6 +68,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <dirent.h>
++#include <limits.h>
+ #include "debug.h"
+ #include "plugin.h"