mirror of
https://github.com/golang/go
synced 2024-11-14 08:00:22 -07:00
syscall: make use of include/linux when generating system constants
On Linux include/net directory is just to help porting applications from BSDs and files under net keep less information than include/linux. Making use of files under include/linux instead of include/net prevents lack of information. LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/63930043
This commit is contained in:
parent
47534ddc68
commit
be9c514f84
@ -92,9 +92,12 @@ includes_Linux='
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
|
#include <linux/if_packet.h>
|
||||||
|
#include <linux/if_addr.h>
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
@ -103,10 +106,7 @@ includes_Linux='
|
|||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
#include <linux/icmpv6.h>
|
#include <linux/icmpv6.h>
|
||||||
#include <net/if.h>
|
|
||||||
#include <net/if_arp.h>
|
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
#include <netpacket/packet.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
#ifndef MSG_FASTOPEN
|
#ifndef MSG_FASTOPEN
|
||||||
|
Loading…
Reference in New Issue
Block a user