mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
35
package/evemu/0001-Include-limits.h-for-PATH_MAX.patch
Normal file
35
package/evemu/0001-Include-limits.h-for-PATH_MAX.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From e80a13776e6d6df29fd704cd63e0744200c3df1b Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Sun, 1 Oct 2017 19:54:53 +0200
|
||||
Subject: [PATCH] Include limits.h for PATH_MAX.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes the following compile failure when building with musl:
|
||||
|
||||
find_event_devices.c: In function ‘find_event_devices’:
|
||||
find_event_devices.c:60:14: error: ‘PATH_MAX’ undeclared (first use in this function)
|
||||
char fname[PATH_MAX];
|
||||
^~~~~~~~
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
tools/find_event_devices.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tools/find_event_devices.c b/tools/find_event_devices.c
|
||||
index 2a43d54..3a74096 100644
|
||||
--- a/tools/find_event_devices.c
|
||||
+++ b/tools/find_event_devices.c
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <linux/input.h>
|
||||
+#include <limits.h>
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
--
|
||||
2.14.2
|
||||
|
||||
Reference in New Issue
Block a user