From ab04e869c7c2354b1cd833b921988d39d8b20210 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 27 Apr 2016 10:37:48 +0200 Subject: [PATCH] nilfs-utils: fix musl build (Alpine patch) --- srcpkgs/nilfs-utils/patches/max-input.patch | 12 ++++++++++++ srcpkgs/nilfs-utils/patches/rpc-types.patch | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 srcpkgs/nilfs-utils/patches/max-input.patch create mode 100644 srcpkgs/nilfs-utils/patches/rpc-types.patch diff --git a/srcpkgs/nilfs-utils/patches/max-input.patch b/srcpkgs/nilfs-utils/patches/max-input.patch new file mode 100644 index 00000000000..5241ea55c0b --- /dev/null +++ b/srcpkgs/nilfs-utils/patches/max-input.patch @@ -0,0 +1,12 @@ +--- ./bin/rmcp.c.orig ++++ ./bin/rmcp.c +@@ -51,6 +51,9 @@ + #include "nilfs.h" + #include "parser.h" + ++#ifndef MAX_INPUT ++#define MAX_INPUT _POSIX_MAX_INPUT ++#endif + + #ifdef _GNU_SOURCE + #include diff --git a/srcpkgs/nilfs-utils/patches/rpc-types.patch b/srcpkgs/nilfs-utils/patches/rpc-types.patch new file mode 100644 index 00000000000..ce55c439a2a --- /dev/null +++ b/srcpkgs/nilfs-utils/patches/rpc-types.patch @@ -0,0 +1,11 @@ +--- ./sbin/mount/sundries.h.orig ++++ ./sbin/mount/sundries.h +@@ -15,7 +15,7 @@ + #include + #include + #include +-#if !defined(bool_t) && !defined(__GLIBC__) ++#if !defined(bool_t) && !defined(__GLIBC__) && HAVE_RPC_TYPES_H + #include + #endif +