From fbc97f5565ae2d10c676ad483dbb5d3b32b98bea Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 7 Mar 2018 11:32:02 +0100 Subject: [PATCH] krbd: include sys/sysmacros.h for major, minor and makedev Previously we got these through sys/types.h, but that's now deprecated: 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 . Signed-off-by: Ilya Dryomov --- src/krbd.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/krbd.cc b/src/krbd.cc index cdc45e7dddcfd..27b33b2855ae3 100644 --- a/src/krbd.cc +++ b/src/krbd.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include #include -- 2.39.5