Browse Source

[linux] Fix building with kernel 4.11 headers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
2c056f02d0
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      src/drivers/linux/af_packet.c
  2. 1
    0
      src/drivers/linux/tap.c

+ 1
- 0
src/drivers/linux/af_packet.c View File

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

+ 1
- 0
src/drivers/linux/tap.c View File

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

Loading…
Cancel
Save