• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch
Brendan HeadingBrendan Heading committed 5b8e76abb5630 Jul 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 3197a4b058615d81aa4623fb5a52e57d7fbc3af2 Mon Sep 17 00:00:00 2001
2
From: Brendan Heading <brendanheading@gmail.com>
3
Date: Thu, 30 Jul 2015 15:47:16 +0100
4
Subject: [PATCH 3/3] compile: fix undefined PATH_MAX under musl
5
​
6
musl's strict implementation requires #include <limits.h> for PATH_MAX.
7
​
8
Upstream-status: submitted
9
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
10
---
11
 cmds-inspect.c | 1 +
12
 cmds-receive.c | 1 +
13
 cmds-scrub.c   | 1 +
14
 cmds-send.c    | 1 +
15
 4 files changed, 4 insertions(+)
16
​
17
diff --git a/cmds-inspect.c b/cmds-inspect.c
18
index 71451fe..9712581 100644
19
--- a/cmds-inspect.c
20
+++ b/cmds-inspect.c
21
@@ -20,6 +20,7 @@
22
 #include <stdint.h>
23
 #include <sys/ioctl.h>
24
 #include <errno.h>
25
+#include <limits.h>
26
 
27
 #include "kerncompat.h"
28
 #include "ioctl.h"
29
diff --git a/cmds-receive.c b/cmds-receive.c
30
index 071bea9..d4b3103 100644
31
--- a/cmds-receive.c
32
+++ b/cmds-receive.c
33
@@ -28,6 +28,7 @@
34
 #include <wait.h>
35
 #include <assert.h>
36
 #include <getopt.h>
37
+#include <limits.h>
38
 
39
 #include <sys/stat.h>
40
 #include <sys/types.h>
41
diff --git a/cmds-scrub.c b/cmds-scrub.c
42
index b7aa809..5a85dc4 100644
43
--- a/cmds-scrub.c
44
+++ b/cmds-scrub.c
45
@@ -34,6 +34,7 @@
46
 #include <ctype.h>
47
 #include <signal.h>
48
 #include <stdarg.h>
49
+#include <limits.h>
50
 
51
 #include "ctree.h"
52
 #include "ioctl.h"
53
diff --git a/cmds-send.c b/cmds-send.c
54
index 20bba18..a0b7f95 100644
55
--- a/cmds-send.c
56
+++ b/cmds-send.c
57
@@ -33,6 +33,7 @@
58
 #include <assert.h>
59
 #include <getopt.h>
60
 #include <uuid/uuid.h>
61
+#include <limits.h>
62
 
63
 #include "ctree.h"
64
 #include "ioctl.h"
65
-- 
66
2.4.3
67
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.