OSDN Git Service

configure: Fix the <sys/sysmacros.h> check
authorAdam Jackson <ajax@redhat.com>
Thu, 4 May 2017 16:25:01 +0000 (12:25 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 4 May 2017 18:36:55 +0000 (14:36 -0400)
commit7040fea0280bad527ed4b3d5eee7d7bfbf303efc
tree4deb4eb3a75454a4366663e0470275df680f53a1
parent7c27cd7c5da0b87cea0dacd454307e2613d3b415
configure: Fix the <sys/sysmacros.h> check

AC_HEADER_MAJOR only defines MAJOR_IN_SYSMACROS if major() is _not_
defined by <sys/types.h> alone. It is, but it warns, and that's ugly.
To fix this, push -Werror into CFLAGS when invoking AC_HEADER_MAJOR so
the warning makes the compilation test fail.

Reviewed-by: Emil Velikov <emil.velilkov@collabora.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
configure.ac