mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
[linux] Fix building with kernel 4.11 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user