0001-nilfs-utils-use-_POSIX_MAX_INPUT.patch 806 B

1234567891011121314151617181920212223242526272829303132
  1. From c6e5a79b130ac33093c36f972be49454f506be7e Mon Sep 17 00:00:00 2001
  2. From: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
  3. Date: Thu, 28 Dec 2017 20:06:38 +0100
  4. Subject: [PATCH] nilfs-utils: use _POSIX_MAX_INPUT
  5. musl does provide _POSIX_MAX_INPUT, but no MAX_INPUT out of the box.
  6. This commit assigns _POSIX_MAX_INPUT to MAX_INPUT.
  7. Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
  8. ---
  9. bin/rmcp.c | 5 +++++
  10. 1 file changed, 5 insertions(+)
  11. diff --git a/bin/rmcp.c b/bin/rmcp.c
  12. index 0140f56..6773912 100644
  13. --- a/bin/rmcp.c
  14. +++ b/bin/rmcp.c
  15. @@ -47,6 +47,11 @@
  16. #include <limits.h>
  17. #endif /* HAVE_LIMITS_H */
  18. +/* define MAX_INPUT for musl */
  19. +#ifndef MAX_INPUT
  20. +#define MAX_INPUT _POSIX_MAX_INPUT
  21. +#endif
  22. +
  23. #include <errno.h>
  24. #include "nilfs.h"
  25. #include "parser.h"
  26. --
  27. 1.8.5.rc3