]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Cope with nic.h being included before (or without) dev.h
authorMichael Brown <mcb30@etherboot.org>
Tue, 12 Apr 2005 18:21:38 +0000 (18:21 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 12 Apr 2005 18:21:38 +0000 (18:21 +0000)
src/include/nic.h

index b3f2673486fad5fabe55390381532db784859f91..4a53a8d63078d06e8e956ca8737b46c8a5d49024 100644 (file)
@@ -8,10 +8,6 @@
 #ifndef        NIC_H
 #define NIC_H
 
-/* to get global "dev" */
-struct dev;
-#include "main.h"
-
 typedef enum {
        DISABLE = 0,
        ENABLE,
@@ -46,6 +42,7 @@ struct nic_operations {
  * Function prototypes
  *
  */
+struct dev;
 extern struct nic * nic_device ( struct dev * dev );
 
 /*
@@ -81,5 +78,7 @@ static inline void eth_disable ( void ) {
 
 /* dev.h needs declarations from nic.h */
 #include "dev.h"
+/* to get global "dev" */
+#include "main.h"
 
 #endif /* NIC_H */