diff options
author | Steve Dickson <steved@redhat.com> | 2017-07-19 16:04:39 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-07-26 11:27:23 -0400 |
commit | 8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1 (patch) | |
tree | 42d69a5d906a026f3e2394650a59a5fc8c8af460 | |
parent | 6d3af74740899646d5d9bd1b033056b5357d4429 (diff) | |
download | nfs-utils-8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1.tar.gz nfs-utils-8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1.tar.xz nfs-utils-8d53eb0690e1aaa2cf05fbc4c9fef42634e0b5f1.zip |
cache.c: removed a couple warning
cache.c:623:13: warning: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>.
if (parsed->major != major(stb.st_dev) ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cache.c:624:13: warning: In the GNU C Library, "minor" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "minor", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"minor", you should undefine it after including <sys/types.h>.
parsed->minor != minor(stb.st_dev))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mountd/cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <config.h> #endif +#include <sys/sysmacros.h> #include <sys/types.h> #include <sys/select.h> #include <sys/stat.h> |