Browse Source

lcd4linux: Add limits header for PATH_MAX

Fixes compilation on musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
ca4dc015fa
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      utils/lcd4linux/Makefile
  2. +10
    -0
      utils/lcd4linux/patches/200-musl.patch

+ 1
- 1
utils/lcd4linux/Makefile View 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


+ 10
- 0
utils/lcd4linux/patches/200-musl.patch View File

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

Loading…
Cancel
Save