[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH,HURD] comment out PF_LINK/AF_LINK
From: |
Paul Eggert |
Subject: |
Re: [PATCH,HURD] comment out PF_LINK/AF_LINK |
Date: |
Fri, 22 Jun 2012 11:45:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
On 06/22/2012 11:22 AM, Roland McGrath wrote:> Programs should just use
> proper checks for what they use (i.e. an autoconf-style check for 'struct
> sockaddr_dl' or the header that defines it), rather than #ifdef AF_*.
Although the autoconf style produces more-portable code, it's still
nicer if glibc also works with programs that use the #ifdef strategy,
as that makes it easier on developers who code just for glibc platforms.
#ifdefs are simpler and are much faster at build time.
Although the proposed patch isn't strictly necessary, it does seem like a
minor improvement.