summaryrefslogtreecommitdiffstats
path: root/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch
diff options
context:
space:
mode:
authorBrendan Heading <brendanheading@gmail.com>2015-07-30 22:23:34 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-30 23:26:25 +0200
commit5b8e76abb566850261ab8dd9766a28239dd98fbd (patch)
treea300f33c8c9b6f64dfe91d04d30d4ad047882236 /package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch
parent8a3580eff7fbdbeefc26698062768c68cb8ab1b3 (diff)
downloadbuildroot-5b8e76abb566850261ab8dd9766a28239dd98fbd.tar.gz
buildroot-5b8e76abb566850261ab8dd9766a28239dd98fbd.zip
package/btrfs-progs: fix build issues under musl
Fixes http://autobuild.buildroot.net/results/b97/b97f1e9cd459da96e3e1680bb7c43d8103ab12c2/build-end.log Patches by Thomas to refactor detection of __always_inline and backtrace detection. Also added #include <limits.h> for PATH_MAX. Signed-off-by: Brendan Heading <brendanheading@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch')
-rw-r--r--package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch b/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch
new file mode 100644
index 0000000000..35260148b2
--- /dev/null
+++ b/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch
@@ -0,0 +1,67 @@
+From 3197a4b058615d81aa4623fb5a52e57d7fbc3af2 Mon Sep 17 00:00:00 2001
+From: Brendan Heading <brendanheading@gmail.com>
+Date: Thu, 30 Jul 2015 15:47:16 +0100
+Subject: [PATCH 3/3] compile: fix undefined PATH_MAX under musl
+
+musl's strict implementation requires #include <limits.h> for PATH_MAX.
+
+Upstream-status: submitted
+Signed-off-by: Brendan Heading <brendanheading@gmail.com>
+---
+ cmds-inspect.c | 1 +
+ cmds-receive.c | 1 +
+ cmds-scrub.c | 1 +
+ cmds-send.c | 1 +
+ 4 files changed, 4 insertions(+)
+
+diff --git a/cmds-inspect.c b/cmds-inspect.c
+index 71451fe..9712581 100644
+--- a/cmds-inspect.c
++++ b/cmds-inspect.c
+@@ -20,6 +20,7 @@
+ #include <stdint.h>
+ #include <sys/ioctl.h>
+ #include <errno.h>
++#include <limits.h>
+
+ #include "kerncompat.h"
+ #include "ioctl.h"
+diff --git a/cmds-receive.c b/cmds-receive.c
+index 071bea9..d4b3103 100644
+--- a/cmds-receive.c
++++ b/cmds-receive.c
+@@ -28,6 +28,7 @@
+ #include <wait.h>
+ #include <assert.h>
+ #include <getopt.h>
++#include <limits.h>
+
+ #include <sys/stat.h>
+ #include <sys/types.h>
+diff --git a/cmds-scrub.c b/cmds-scrub.c
+index b7aa809..5a85dc4 100644
+--- a/cmds-scrub.c
++++ b/cmds-scrub.c
+@@ -34,6 +34,7 @@
+ #include <ctype.h>
+ #include <signal.h>
+ #include <stdarg.h>
++#include <limits.h>
+
+ #include "ctree.h"
+ #include "ioctl.h"
+diff --git a/cmds-send.c b/cmds-send.c
+index 20bba18..a0b7f95 100644
+--- a/cmds-send.c
++++ b/cmds-send.c
+@@ -33,6 +33,7 @@
+ #include <assert.h>
+ #include <getopt.h>
+ #include <uuid/uuid.h>
++#include <limits.h>
+
+ #include "ctree.h"
+ #include "ioctl.h"
+--
+2.4.3
+
OpenPOWER on IntegriCloud