]> git.ozlabs.org Git - petitboot/commit
discover/device-handler: Include makedev() from sysmacros.h
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 27 Apr 2017 05:35:45 +0000 (15:35 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 20 Jun 2017 04:19:53 +0000 (14:19 +1000)
commit18158dcd2e9e78ecf77374153801e01b0187e6ed
treea10571e589d5cc269c1b085ace70bfa37c27778e
parent41ed6ff3d8821de44e576147e5d2402d56018af3
discover/device-handler: Include makedev() from sysmacros.h

Include sys/sysmacros.h explicitly in response to the following error
message:

../discover/device-handler.c:1001:13: warning: In the GNU C Library, "makedev" 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 "makedev", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "makedev", you should undefine it after including <sys/types.h>.
  id = makedev(1, handler->n_ramdisks);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/device-handler.c