소스 검색

[linux] Fix building with kernel 4.11 headers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 년 전
부모
커밋
2c056f02d0
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장