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