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
This commit is contained in:
Andrei Vagin 2019-11-22 10:42:57 -08:00 committed by gVisor bot
parent c0f89eba6e
commit 4e27ba372e
1 changed files with 2 additions and 0 deletions

View File

@ -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>