From d447a05ee560ba5894d2ed4cd93d0475c2f3c08e Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 17 Dec 2019 17:39:32 -0800
Subject: [PATCH 2/3] Include <limits.h> for PATH_MAX definition

musl libc exposes the missing include

Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 server/drivers/hidraw_lib.c  | 1 +
 server/drivers/linux_input.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/server/drivers/hidraw_lib.c b/server/drivers/hidraw_lib.c
index 49b03f20..3b51f279 100644
--- a/server/drivers/hidraw_lib.c
+++ b/server/drivers/hidraw_lib.c
@@ -8,6 +8,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/ioctl.h>
diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c
index 5b914d4c..6fcfc591 100644
--- a/server/drivers/linux_input.c
+++ b/server/drivers/linux_input.c
@@ -5,6 +5,7 @@
 
 #include <dirent.h>
 #include <errno.h>
+#include <limits.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-- 
2.24.1

