summaryrefslogtreecommitdiffstats
path: root/package/nilfs-utils/0001-nilfs-utils-use-_POSIX_MAX_INPUT.patch
blob: f14079a5c54fac19b88b17e199ac7eb41513dbac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From c6e5a79b130ac33093c36f972be49454f506be7e Mon Sep 17 00:00:00 2001
From: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Date: Thu, 28 Dec 2017 20:06:38 +0100
Subject: [PATCH] nilfs-utils: use _POSIX_MAX_INPUT

musl does provide _POSIX_MAX_INPUT, but no MAX_INPUT out of the box.
This commit assigns _POSIX_MAX_INPUT to MAX_INPUT.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
---
 bin/rmcp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/rmcp.c b/bin/rmcp.c
index 0140f56..6773912 100644
--- a/bin/rmcp.c
+++ b/bin/rmcp.c
@@ -47,6 +47,11 @@
 #include <limits.h>
 #endif	/* HAVE_LIMITS_H */
 
+/* define MAX_INPUT for musl */
+#ifndef MAX_INPUT
+#define MAX_INPUT _POSIX_MAX_INPUT
+#endif
+
 #include <errno.h>
 #include "nilfs.h"
 #include "parser.h"
-- 
1.8.5.rc3

OpenPOWER on IntegriCloud