diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2015-01-06 16:13:19 -0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-25 00:13:28 -0500 |
commit | cb43bb0d68f001fc3d6e054d712ab8794b5fd1de (patch) | |
tree | 897c2c16196db9b988c0e26bf8ce52be225aab38 /sysdeps | |
parent | 9be1052b6f7583fad365643169cfc6732c96aee3 (diff) | |
download | glibc-cb43bb0d68f001fc3d6e054d712ab8794b5fd1de.tar glibc-cb43bb0d68f001fc3d6e054d712ab8794b5fd1de.tar.gz glibc-cb43bb0d68f001fc3d6e054d712ab8794b5fd1de.tar.bz2 glibc-cb43bb0d68f001fc3d6e054d712ab8794b5fd1de.zip |
in.h: Coordinate in6_pktinfo and ip6_mtuinfo for kernel and glibc [BZ #15850]
Similarly to what we did for in6_addr, we need a macro
to guard in6_pktinfo and ip6_mtuinfo too.
Cc: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/in.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h index b80a27fa43..b1d2cf60f3 100644 --- a/sysdeps/unix/sysv/linux/bits/in.h +++ b/sysdeps/unix/sysv/linux/bits/in.h @@ -23,10 +23,10 @@ /* If the application has already included linux/in6.h from a linux-based kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the - defines), sockaddr_in6, or ipv6_mreq. The ABI used by the linux-kernel and - glibc match exactly. Neither the linux kernel nor glibc should break this - ABI without coordination. */ -#ifdef _UAPI_LINUX_IN6_H + defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo + in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly. + Neither the linux kernel nor glibc should break this ABI without coordination. */ +#if defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H /* This is not quite the same API since the kernel always defines s6_addr16 and s6_addr32. This is not a violation of POSIX since POSIX says "at least the following member" and that holds true. */ |