nilfs-utils: fix musl build (Alpine patch)

This commit is contained in:
Michael Gehring 2016-04-27 10:37:48 +02:00
parent 3c8f807e4d
commit ab04e869c7
2 changed files with 23 additions and 0 deletions

View File

@ -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 <getopt.h>

View File

@ -0,0 +1,11 @@
--- ./sbin/mount/sundries.h.orig
+++ ./sbin/mount/sundries.h
@@ -15,7 +15,7 @@
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
-#if !defined(bool_t) && !defined(__GLIBC__)
+#if !defined(bool_t) && !defined(__GLIBC__) && HAVE_RPC_TYPES_H
#include <rpc/types.h>
#endif