[PATCH v2] Coordinate if.h definitions for Linux and glibc (BZ #21367)
Dmitry V. Levin
ldv@altlinux.org
Mon Apr 10 00:48:00 GMT 2017
On Sun, Apr 09, 2017 at 11:43:51PM +0200, Aurelien Jarno wrote:
> This commit coordinates the definition of structures and enum already
> defined the Linux kernel UAPI headers, following the procedure described
> on https://sourceware.org/glibc/wiki/Synchronizing_Headers.
>
> With this change, it is safe to include <net/if.h> and <linux/if.h> in
> any order in a a userspace application.
>
> Note: this as been fixed in commit 4a91cb61bb995 on the Linux side.
>
> Changelog:
> [BZ #21367]
> * sysdeps/gnu/net/if.h: wrap IFF_* enums in
> !defined __UAPI_DEF_IF_NET_DEVICE_FLAGS defines.
> (struct ifmap): Wrap in !defined __UAPI_DEF_IF_IFMAP defines.
> (struct ifreq): Wrap in !defined __UAPI_DEF_IF_IFREQ defines.
> (struct ifconf): Wrap in !defined __UAPI_DEF_IF_IFCONF defines.
> ---
> ChangeLog | 9 +++++++++
> sysdeps/gnu/net/if.h | 9 +++++++++
> 2 files changed, 18 insertions(+)
>
> Changes v1 -> v2:
> Use '#ifndef' instead of '#if !' so that it also works with -Werror=undef
Please try to include this patched <net/if.h> after <linux/xattr.h>
and see what's going to be defined.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170410/0bdcb3a5/attachment.sig>
More information about the Libc-alpha
mailing list