re-arrange include sequence to avoid a mingw introduced bug.
authorLunarShaddow <aflyhorse@hotmail.com>
Mon, 7 Mar 2016 07:43:04 +0000 (15:43 +0800)
committerLunarShaddow <aflyhorse@hotmail.com>
Mon, 7 Mar 2016 07:43:04 +0000 (15:43 +0800)
refers: https://www.cygwin.com/ml/cygwin/2012-12/msg00194.html

src/cygwin/device.c

index 935e507..eaf5037 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "../system.h"
 */
 
 #include "../system.h"
+#include "../net.h"
 
 #include <w32api/windows.h>
 #include <w32api/winioctl.h>
 
 #include <w32api/windows.h>
 #include <w32api/winioctl.h>
@@ -26,7 +27,6 @@
 #include "../conf.h"
 #include "../device.h"
 #include "../logger.h"
 #include "../conf.h"
 #include "../device.h"
 #include "../logger.h"
-#include "../net.h"
 #include "../route.h"
 #include "../utils.h"
 #include "../xalloc.h"
 #include "../route.h"
 #include "../utils.h"
 #include "../xalloc.h"