summaryrefslogtreecommitdiff
path: root/m4/stdio_h.m4
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-09-14 19:36:14 -0500
committerEric Blake <eblake@redhat.com>2016-09-15 12:40:24 -0500
commita512e041120e9012e69afa2f5c3adc196ec4999a (patch)
treed65c16ea46425cb976291481e73ee09f65f751a9 /m4/stdio_h.m4
parent4da63c5881f60f71999a943612da9112232b9161 (diff)
downloadgnulib-a512e041120e9012e69afa2f5c3adc196ec4999a.tar.gz
sys_types: avoid glibc 2.25 warnings about major()
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. Backport the autoconf fix (see autoconf commit e17a30e98), so that gnulib projects avoid the warnings even when using older autoconf. * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in older autoconf. * doc/posix-headers/sys_types.texi (sys/types.h): Document fix. * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise. * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise. * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'm4/stdio_h.m4')
0 files changed, 0 insertions, 0 deletions