]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
krbd: include sys/sysmacros.h for major, minor and makedev 20773/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 7 Mar 2018 10:32:02 +0000 (11:32 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 7 Mar 2018 10:42:38 +0000 (11:42 +0100)
commitfbc97f5565ae2d10c676ad483dbb5d3b32b98bea
tree0ad973055a2b53d5755b4c0bf0fdd2936ed96eff
parent2e4f06ea5491fe6666a9d1837c2ba6c77e42c032
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 <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>.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/krbd.cc