Commit c66ad9ca authored by Willem de Bruijn's avatar Willem de Bruijn Committed by David S. Miller

ipv6: directly include libc-compat.h in ipv6.h

Patch 3b50d902 ("ipv6: fix redefinition of in6_pktinfo ...")
fixed a libc compatibility issue in ipv6 structure definitions
as described in include/uapi/linux/libc-compat.h.

It relies on including linux/in6.h to include libc-compat.h itself.
Include that file directly to clearly communicate the dependency
(libc-compat.h: "This include must be as early as possible").
Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>

----

As discussed in http://patchwork.ozlabs.org/patch/427384/Acked-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 721f7951
#ifndef _UAPI_IPV6_H #ifndef _UAPI_IPV6_H
#define _UAPI_IPV6_H #define _UAPI_IPV6_H
#include <linux/libc-compat.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/in6.h> #include <linux/in6.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment