Browse Source

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

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
3f338b7b80

+ 1
- 0
src/drivers/net/3c509.c View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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…
Cancel
Save