瀏覽代碼

Include errno.h in the few drivers which use it, rather than in nic.h

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
3f338b7b80
共有 7 個文件被更改,包括 6 次插入1 次删除
  1. 1
    0
      src/drivers/net/3c509.c
  2. 1
    0
      src/drivers/net/bnx2.c
  3. 1
    0
      src/drivers/net/cs89x0.c
  4. 1
    0
      src/drivers/net/eepro.c
  5. 1
    0
      src/drivers/net/smc9000.c
  6. 1
    0
      src/drivers/net/tg3.c
  7. 0
    1
      src/include/nic.h

+ 1
- 0
src/drivers/net/3c509.c 查看文件

@@ -7,6 +7,7 @@
7 7
 #include <stdint.h>
8 8
 #include <stdlib.h>
9 9
 #include <string.h>
10
+#include <errno.h>
10 11
 #include <io.h>
11 12
 #include <timer.h>
12 13
 #include <gpxe/device.h>

+ 1
- 0
src/drivers/net/bnx2.c 查看文件

@@ -15,6 +15,7 @@
15 15
 
16 16
 #include "etherboot.h"
17 17
 #include "nic.h"
18
+#include <errno.h>
18 19
 #include <gpxe/pci.h>
19 20
 #include <gpxe/ethernet.h>
20 21
 #include "timer.h"

+ 1
- 0
src/drivers/net/cs89x0.c 查看文件

@@ -66,6 +66,7 @@
66 66
 
67 67
   */
68 68
 
69
+#include <errno.h>
69 70
 #include <gpxe/ethernet.h>
70 71
 #include "etherboot.h"
71 72
 #include "nic.h"

+ 1
- 0
src/drivers/net/eepro.c 查看文件

@@ -32,6 +32,7 @@ has 34 pins, the top row of 2 are not used.
32 32
  */
33 33
 
34 34
 #include "etherboot.h"
35
+#include <errno.h>
35 36
 #include "nic.h"
36 37
 #include <gpxe/isa.h>
37 38
 #include "timer.h"

+ 1
- 0
src/drivers/net/smc9000.c 查看文件

@@ -36,6 +36,7 @@
36 36
 #endif
37 37
 
38 38
 #include <gpxe/ethernet.h>
39
+#include <errno.h>
39 40
 #include "etherboot.h"
40 41
 #include "nic.h"
41 42
 #include <gpxe/isa.h>

+ 1
- 0
src/drivers/net/tg3.c 查看文件

@@ -14,6 +14,7 @@
14 14
 
15 15
 #include "etherboot.h"
16 16
 #include "nic.h"
17
+#include <errno.h>
17 18
 #include <gpxe/pci.h>
18 19
 #include <gpxe/ethernet.h>
19 20
 #include "timer.h"

+ 0
- 1
src/include/nic.h 查看文件

@@ -11,7 +11,6 @@
11 11
 #include <stdint.h>
12 12
 #include <string.h>
13 13
 #include <stdio.h>
14
-#include <errno.h>
15 14
 #include <byteswap.h>
16 15
 #include <gpxe/pci.h>
17 16
 #include <gpxe/isapnp.h>

Loading…
取消
儲存