[PATCH weston 2/2] launcher: Add sysmacros.h include for major()

Emilio Pozuelo Monfort emilio.pozuelo at collabora.co.uk
Mon Mar 13 17:45:54 UTC 2017


On 13/03/17 17:33, Daniel Stone wrote:
> 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 <daniels at collabora.com>

Series is:

Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>

> ---
>  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 <unistd.h>
>  #include <signal.h>
>  #include <sys/stat.h>
> +#include <sys/sysmacros.h>
>  #include <sys/ioctl.h>
>  #include <linux/vt.h>
>  #include <linux/kd.h>
> 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 <stdlib.h>
>  #include <string.h>
>  #include <sys/stat.h>
> +#include <sys/sysmacros.h>
>  #include <systemd/sd-login.h>
>  #include <unistd.h>
>  
> 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 <errno.h>
>  #include <signal.h>
>  #include <sys/socket.h>
> +#include <sys/sysmacros.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
>  #include <sys/uio.h>
> 



More information about the wayland-devel mailing list