This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]