From: Samuel Mendoza-Jonas Date: Thu, 27 Apr 2017 05:35:45 +0000 (+1000) Subject: discover/device-handler: Include makedev() from sysmacros.h X-Git-Tag: v1.4.3~3 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=18158dcd2e9e78ecf77374153801e01b0187e6ed;ds=inline 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 . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . id = makedev(1, handler->n_ramdisks); ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/discover/device-handler.c b/discover/device-handler.c index 5b7afd0..ec1eee3 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include