Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[linux] Fix building with kernel 4.11 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 29, 2017
1 parent 5f85cbb commit 2c056f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/linux/af_packet.c
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/drivers/linux/tap.c
Expand Up @@ -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__
Expand Down

0 comments on commit 2c056f0

Please sign in to comment.