ソースを参照

[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__

読み込み中…
キャンセル
保存