Explorar el Código

[linux] Fix building with kernel 4.11 headers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 7 años
padre
commit
2c056f02d0
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar