chiark / gitweb /
Guard against inappropriate compilation.
authormdw <mdw>
Mon, 5 Feb 2001 19:55:00 +0000 (19:55 +0000)
committermdw <mdw>
Mon, 5 Feb 2001 19:55:00 +0000 (19:55 +0000)
tun-unet.c

index 57e1397d6061feab98c51b603f90188a5038b214..cc1e40720dc3fa791365819762ca8e865588741f 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: tun-unet.c,v 1.2 2001/02/04 17:10:58 mdw Exp $
+ * $Id: tun-unet.c,v 1.3 2001/02/05 19:55:00 mdw Exp $
  *
  * Tunnel interface based on Linux Usernet
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: tun-unet.c,v $
+ * Revision 1.3  2001/02/05 19:55:00  mdw
+ * Guard against inappropriate compilation.
+ *
  * Revision 1.2  2001/02/04 17:10:58  mdw
  * Make file descriptors be nonblocking and close-on-exec.
  *
 
 /*----- Main code ---------------------------------------------------------*/
 
+#if TUN_TYPE != TUN_UNET
+#  error "Tunnel type mismatch: fix the Makefile"
+#endif
+
 /* --- @t_read@ --- *
  *
  * Arguments:  @int fd@ = file descriptor to read