diff options
author | Andrei Vagin <avagin@google.com> | 2019-11-22 10:42:57 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-22 10:57:11 -0800 |
commit | 4e27ba372e12e3186c0d03b32a7829b0d50f7a89 (patch) | |
tree | 7dca85d7ecfbf12973fe347694a4dfe161c1c065 /test/syscalls/linux/socket_netlink_util.h | |
parent | c0f89eba6ebdec08460bd796fc62d6aef674d141 (diff) |
tests: include sys/socket.h before linux/if_arp.h
This is how it has to be accoding to the man page.
PiperOrigin-RevId: 281998068
Diffstat (limited to 'test/syscalls/linux/socket_netlink_util.h')
-rw-r--r-- | test/syscalls/linux/socket_netlink_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/socket_netlink_util.h b/test/syscalls/linux/socket_netlink_util.h index da99f0d60..76e772c48 100644 --- a/test/syscalls/linux/socket_netlink_util.h +++ b/test/syscalls/linux/socket_netlink_util.h @@ -15,6 +15,8 @@ #ifndef GVISOR_TEST_SYSCALLS_SOCKET_NETLINK_UTIL_H_ #define GVISOR_TEST_SYSCALLS_SOCKET_NETLINK_UTIL_H_ +#include <sys/socket.h> +// socket.h has to be included before if_arp.h. #include <linux/if_arp.h> #include <linux/netlink.h> |