diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2017-04-27 15:35:45 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2017-06-20 14:19:53 +1000 |
commit | 18158dcd2e9e78ecf77374153801e01b0187e6ed (patch) | |
tree | a10571e589d5cc269c1b085ace70bfa37c27778e /discover/params.h | |
parent | 41ed6ff3d8821de44e576147e5d2402d56018af3 (diff) | |
download | petitboot-18158dcd2e9e78ecf77374153801e01b0187e6ed.zip petitboot-18158dcd2e9e78ecf77374153801e01b0187e6ed.tar.gz |
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>
Diffstat (limited to 'discover/params.h')
0 files changed, 0 insertions, 0 deletions