mirror of https://github.com/ipxe/ipxe.git
[linux] Fix building with kernel 4.11 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/8/merge
parent
5f85cbb9ee
commit
2c056f02d0
|
@ -31,6 +31,7 @@
|
||||||
#include <ipxe/socket.h>
|
#include <ipxe/socket.h>
|
||||||
|
|
||||||
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
|
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
|
||||||
|
#define _SYS_SOCKET_H
|
||||||
#define __GLIBC__ 2
|
#define __GLIBC__ 2
|
||||||
#include <linux/socket.h>
|
#include <linux/socket.h>
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <ipxe/socket.h>
|
#include <ipxe/socket.h>
|
||||||
|
|
||||||
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
|
/* This hack prevents pre-2.6.32 headers from redefining struct sockaddr */
|
||||||
|
#define _SYS_SOCKET_H
|
||||||
#define __GLIBC__ 2
|
#define __GLIBC__ 2
|
||||||
#include <linux/socket.h>
|
#include <linux/socket.h>
|
||||||
#undef __GLIBC__
|
#undef __GLIBC__
|
||||||
|
|
Loading…
Reference in New Issue