Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 1 | From a9802902d37b83c2c992cfe34179312f7209a962 Mon Sep 17 00:00:00 2001 |
| 2 | From: Wang Mingyu <wangmy@fujitsu.com> |
| 3 | Date: Mon, 19 Jul 2021 10:12:12 +0900 |
| 4 | Subject: [PATCH] fix error for undeclared macro on musl |
| 5 | |
| 6 | Fixes the following compilation errors with musl that does not have |
| 7 | NAME_MAX declared: |
| 8 | 'NAME_MAX' undeclared (first use in this function) |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> |
| 13 | --- |
| 14 | cmds/filesystem-usage.c | 1 + |
| 15 | 1 file changed, 1 insertion(+) |
| 16 | |
| 17 | diff --git a/cmds/filesystem-usage.c b/cmds/filesystem-usage.c |
| 18 | index 50d8995e..856e9d7b 100644 |
| 19 | --- a/cmds/filesystem-usage.c |
| 20 | +++ b/cmds/filesystem-usage.c |
| 21 | @@ -24,6 +24,7 @@ |
| 22 | #include <stdarg.h> |
| 23 | #include <getopt.h> |
| 24 | #include <fcntl.h> |
| 25 | +#include <limits.h> |
| 26 | |
| 27 | #include "common/utils.h" |
| 28 | #include "kerncompat.h" |