This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [2.24 PATCH 3/3] Deprecate inclusion of <sys/sysmacros.h> by <sys/types.h>
- From: Zack Weinberg <zackw at panix dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 3 Aug 2016 14:51:44 -0400
- Subject: Re: [2.24 PATCH 3/3] Deprecate inclusion of <sys/sysmacros.h> by <sys/types.h>
- Authentication-results: sourceware.org; auth=none
- References: <cover.1469994984.git.zackw@panix.com> <ec1857e5b77170d2493001fd1afe64a5e0a2748d.1469994984.git.zackw@panix.com> <cc4771bb-ba7a-7a6c-ef72-58780c081282@redhat.com>
On Mon, Aug 1, 2016 at 5:07 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> + Code that does not need these macros should #undef them after including
>> + <sys/types.h>; this will also improve portability to BSD-derived systems,
>> + where these macros are unconditionally defined by <sys/types.h>. Code
>> + that *does* need these macros should include <sys/types.h>, and then
>> + include <sys/sysmacros.h> if __GLIBC__ is defined.
>
> I think this should be removed from the NEWS entry.
>
> Instead in the release wiki there should be some detailed instructions
> under the normal "Packaging Changes" that describes exactly what needs to be
> done with a code snippet, with particular case to writing code that keeps
> working into the future.
I'm working on updating the patches again (deferring them to 2.25 may
mean that they go back to having to touch all the libc.abilist files,
feh) and I've created https://sourceware.org/glibc/wiki/Release/2.25
with a section about this, as you requested. Please have a look.
zw