chiark / gitweb /
ipif: move #include of automech.h down so that it has definition of struct mechanism
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 21 Apr 2011 18:13:11 +0000 (19:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 21 Apr 2011 18:13:11 +0000 (19:13 +0100)
ipif/forwarder.h

index fa048b3..599eb41 100644 (file)
@@ -28,8 +28,6 @@
 #include <string.h>
 #include <sys/utsname.h>
 
-#include "automech.h"
-
 struct buffer {
   unsigned char *base;
   unsigned char *start;
@@ -52,6 +50,8 @@ struct mechanism {
   mdec_functype *decode;
 };
 
+#include "automech.h"
+
 extern const struct mechanism *const mechanismlists[];
 
 /* setup function may call getarg_xxx functions and then