chiark / gitweb /
Rearrange so as not to include Linux headers unless we need to.
authormdw <mdw>
Sun, 6 Apr 2003 10:36:33 +0000 (10:36 +0000)
committermdw <mdw>
Sun, 6 Apr 2003 10:36:33 +0000 (10:36 +0000)
tripe.h

diff --git a/tripe.h b/tripe.h
index 41744837aea6e10ce9c92ce597c94c808274f4c4..3c0a15419630cf16001a4f611814a9b85d40dde1 100644 (file)
--- a/tripe.h
+++ b/tripe.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tripe.h,v 1.13 2003/04/06 10:26:35 mdw Exp $
+ * $Id: tripe.h,v 1.14 2003/04/06 10:36:33 mdw Exp $
  *
  * Main header file for TrIPE
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: tripe.h,v $
+ * Revision 1.14  2003/04/06 10:36:33  mdw
+ * Rearrange so as not to include Linux headers unless we need to.
+ *
  * Revision 1.13  2003/04/06 10:26:35  mdw
  * Report peer name on decrypt errors.
  *
 #include <arpa/inet.h>
 #include <netdb.h>
 
-#if TUN_TYPE == TUN_LINUX
-#  include <linux/if.h>
-#  include <linux/if_tun.h>
-#endif
-
 #include <pwd.h>
 #include <grp.h>
 
@@ -388,6 +386,11 @@ enum {
  * Used to maintain system-specific information about the tunnel interface.
  */
 
+#if TUN_TYPE == TUN_LINUX
+#  include <linux/if.h>
+#  include <linux/if_tun.h>
+#endif
+
 typedef struct tunnel {
 #if TUN_TYPE == TUN_UNET 
   sel_file f;                          /* Selector for Usernet device */