Ticket #3857: avoid glibc 2.25 warnings about major(), minor(), and makedev().
commitfcf5ba5be2ccbce693bf8902dacc5c46961d2162
authorAndrew Borodin <aborodin@vmail.ru>
Thu, 4 Jan 2018 06:23:59 +0000 (4 09:23 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 20 Jan 2018 07:57:42 +0000 (20 10:57 +0300)
tree2b34334f292ae77d765c8bcb18f4553ee1e003be
parentd94a568cbfcba9e1c3e6dd1cbc6c8128df7132e5
Ticket #3857: avoid glibc 2.25 warnings about major(), minor(), and makedev().

See gnulib a512e041120e9012e69afa2f5c3adc196ec4999a:

glibc 2.25 is deprecating the namespace pollution of <sys/types.h>
injecting major(), minor(), and makedev() into the compilation
environment, with a warning that insists that users include
<sys/sysmacros.h> instead.  However, because the expansion of
AC_HEADER_MAJOR didn't bother checking sys/sysmacros.h until after
probing whether sys/types.h pollutes the namespace, it was not defining
MAJOR_IN_SYSMACROS, with the result that code compiled with -Werror
chokes on the deprecation warnings because it was not including
sysmacros.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
acinclude.m4
configure.ac
m4.include/sys_types_h.m4 [new file with mode: 0644]
m4.include/windows-stat-inodes.m4 [new file with mode: 0644]