From 8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 19 Jul 2017 16:04:39 -0400 Subject: cache.c: removed a couple warning cache.c:623:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . if (parsed->major != major(stb.st_dev) || ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cache.c:624:13: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . parsed->minor != minor(stb.st_dev)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Steve Dickson --- utils/mountd/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index ca6c84f..e49300d 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -11,6 +11,7 @@ #include #endif +#include #include #include #include -- cgit