Browse Source

Cope with nic.h being included before (or without) dev.h

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
1218698e01
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/include/nic.h

+ 3
- 4
src/include/nic.h View File

8
 #ifndef	NIC_H
8
 #ifndef	NIC_H
9
 #define NIC_H
9
 #define NIC_H
10
 
10
 
11
-/* to get global "dev" */
12
-struct dev;
13
-#include "main.h"
14
-
15
 typedef enum {
11
 typedef enum {
16
 	DISABLE = 0,
12
 	DISABLE = 0,
17
 	ENABLE,
13
 	ENABLE,
46
  * Function prototypes
42
  * Function prototypes
47
  *
43
  *
48
  */
44
  */
45
+struct dev;
49
 extern struct nic * nic_device ( struct dev * dev );
46
 extern struct nic * nic_device ( struct dev * dev );
50
 
47
 
51
 /*
48
 /*
81
 
78
 
82
 /* dev.h needs declarations from nic.h */
79
 /* dev.h needs declarations from nic.h */
83
 #include "dev.h"
80
 #include "dev.h"
81
+/* to get global "dev" */
82
+#include "main.h"
84
 
83
 
85
 #endif	/* NIC_H */
84
 #endif	/* NIC_H */

Loading…
Cancel
Save