[Bug libc/19239] Including stdlib.h ends up with macros major and minor being defined

ldv at sourceware dot org sourceware-bugzilla@sourceware.org
Tue Aug 30 10:49:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=19239

--- Comment #10 from Dmitry V. Levin <ldv at sourceware dot org> ---
(In reply to Dmitry V. Levin from comment #7)
> Not really a glibc problem, but a direct consequence of commit
> https://sourceware.org/git/?p=glibc.git;a=commitdiff;
> h=dbab6577c6684c62bd2521c1c29dc25c3cac966f
> 
> Autoconf macro AC_HEADER_MAJOR no longer works as expected, it fails to
> detect that makedev from sys/types.h is deprecated:
> 
> checking whether sys/types.h defines makedev... yes
> 
> This leads to undefined MAJOR_IN_SYSMACROS, deprecation warnings, and,
> consequently, build errors in projects that use -Werror.

OK, I changed strace to include <sys/sysmacros.h> unconditionally, but for
software portable beyond GNU/Linux there is no workaround available atm.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list