summaryrefslogtreecommitdiff
path: root/package/smack
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-31 17:26:21 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-01-31 21:06:25 +0100
commit421defd17679c6d203a01ca1768cd347da593e40 (patch)
treead436c5e3e4173bddb12b7a5e647db902a6d4296 /package/smack
parent5bb7ad75830ed0499be41cbcea36bb905f67c815 (diff)
package/smack: fix musl build
The build error was not yet found by the autobuilders: common.c: In function ‘clear’: common.c:36:12: error: ‘PATH_MAX’ undeclared (first use in this function) char path[PATH_MAX]; ^ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/smack')
-rw-r--r--package/smack/0001-libsmack-common.c-Include-limits.h-for-PATH_MAX.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/smack/0001-libsmack-common.c-Include-limits.h-for-PATH_MAX.patch b/package/smack/0001-libsmack-common.c-Include-limits.h-for-PATH_MAX.patch
new file mode 100644
index 000000000..0e30ef5e3
--- /dev/null
+++ b/package/smack/0001-libsmack-common.c-Include-limits.h-for-PATH_MAX.patch
@@ -0,0 +1,29 @@
+From 316c911aa741b14513622a4206ed6d324e951fa0 Mon Sep 17 00:00:00 2001
+From: Felix Janda <felix.janda@posteo.de>
+Date: Wed, 20 May 2015 21:25:22 +0200
+Subject: [PATCH 1/1] libsmack/common.c: Include <limits.h> for PATH_MAX
+
+Signed-off-by: Felix Janda <felix.janda@posteo.de>
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+Downloaded from upstream commit
+https://github.com/smack-team/smack/commit/316c911aa741b14513622a4206ed6d324e951fa0
+
+ libsmack/common.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libsmack/common.c b/libsmack/common.c
+index 55fee1a..55b59e3 100644
+--- a/libsmack/common.c
++++ b/libsmack/common.c
+@@ -22,6 +22,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
+--
+2.7.0
+