summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-04-27 15:35:45 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-06-20 14:19:53 +1000
commit18158dcd2e9e78ecf77374153801e01b0187e6ed (patch)
treea10571e589d5cc269c1b085ace70bfa37c27778e
parent41ed6ff3d8821de44e576147e5d2402d56018af3 (diff)
downloadpetitboot-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>
-rw-r--r--discover/device-handler.c1
1 files changed, 1 insertions, 0 deletions
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 <url/url.h>
#include <i18n/i18n.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
OpenPOWER on IntegriCloud