From c4d7f66c12853b9575366dd9f4a7960ec5694934 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 13 Mar 2017 16:32:18 +0000 Subject: [PATCH] launcher: Add sysmacros.h include for major() glibc 2.25 produces a warning when sysmacros.h is not directly included but major() is used, as it is intended to be moved to sysmacros.h and only there. Include it to keep the build happy. Signed-off-by: Daniel Stone Reviewed-by: Emilio Pozuelo Monfort --- libweston/launcher-direct.c | 1 + libweston/launcher-logind.c | 1 + libweston/launcher-weston-launch.c | 1 + 3 files changed, 3 insertions(+) diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c index 4195cf65..3d8f5f67 100644 --- a/libweston/launcher-direct.c +++ b/libweston/launcher-direct.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c index 8de1ed11..f10a2831 100644 --- a/libweston/launcher-logind.c +++ b/libweston/launcher-logind.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/libweston/launcher-weston-launch.c b/libweston/launcher-weston-launch.c index 930f4e0c..a7535ce7 100644 --- a/libweston/launcher-weston-launch.c +++ b/libweston/launcher-weston-launch.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include