configure.ac: use AC_HEADER_MAJOR to detect major()/minor()
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 31 May 2017 21:17:50 +0000 (22:17 +0100)
committerDaniel Stone <daniels@collabora.com>
Mon, 4 Dec 2017 19:38:14 +0000 (19:38 +0000)
commit43c5a65b034a243700cf9c5bfbe6bcefb15f1161
tree708ee8a7a045e1510bf8af5bf4eb3bb8e262d8db
parent0c30fa5503d8d3508704c513a0ce3c24f764e103
configure.ac: use AC_HEADER_MAJOR to detect major()/minor()

This change slightly updates c4d7f66c12853b9575366dd9f4a7960ec5694934
which added <sys/sysmacros.h> inclusion.

Autoconf has AC_HEADER_MAJOR to find out which header defines
reqiured macros:
    https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Headers.html

This change should increase portability across other libcs.

Bug: https://bugs.gentoo.org/610652
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Reviewed-by: Daniel Stone <daniels@collabora.com>
configure.ac
libweston/launcher-direct.c
libweston/launcher-logind.c
libweston/launcher-weston-launch.c
libweston/weston-launch.c