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 +