david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[linux] Fix building with kernel 4.11 headers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-29 10:58:17 +03:00
parent 5f85cbb9ee
commit 2c056f02d0
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <ipxe/socket.h>
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
#define _SYS_SOCKET_H
#define __GLIBC__ 2
#include <linux/socket.h>
#include <linux/if.h>

View File

@ -31,6 +31,7 @@
#include <ipxe/socket.h>
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
#define _SYS_SOCKET_H
#define __GLIBC__ 2
#include <linux/socket.h>
#undef __GLIBC__