linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Robertson <danlrobertson89@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: btrfs-progs: compile with musl libc
Date: Tue, 13 Feb 2018 13:25:10 +0000	[thread overview]
Message-ID: <20180213132509.GA16525@drobertson-crashbox.lab.tripwire.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 165 bytes --]

Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used. The lack
of this currently causes btrfs-progs to fail to compile when the systems libc
is musl.

[-- Attachment #1.2: 0001-btrfs-progs-compile-with-musl-libc.patch --]
[-- Type: text/x-diff, Size: 742 bytes --]

From 7859e0d01778e844ae0fcbefe55581277ce7cab3 Mon Sep 17 00:00:00 2001
From: Dan Robertson <danlrobertson89@gmail.com>
Date: Tue, 13 Feb 2018 13:04:29 +0000
Subject: [PATCH] btrfs-progs: compile with musl libc

Ensure that limits.h is included in mkfs/main.c as PATH_MAX is used.

Signed-off-by: Dan Robertson <danlrobertson89@gmail.com>
---
 mkfs/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mkfs/main.c b/mkfs/main.c
index ea65c6d8..f44520aa 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -27,6 +27,7 @@
 /* #include <sys/dir.h> included via androidcompat.h */
 #include <fcntl.h>
 #include <unistd.h>
+#include <limits.h>
 #include <getopt.h>
 #include <uuid/uuid.h>
 #include <ctype.h>
-- 
2.16.1


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2018-02-13 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13 13:25 Dan Robertson [this message]
2018-02-13 15:13 ` btrfs-progs: compile with musl libc David Sterba
2018-02-13 15:19   ` Dan Robertson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180213132509.GA16525@drobertson-crashbox.lab.tripwire.com \
    --to=danlrobertson89@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).