From e78f24a2188bcbd53121b8fb9de27e9d0099eb26 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Mon, 5 Feb 2001 19:55:00 +0000 Subject: [PATCH] Guard against inappropriate compilation. Organization: Straylight/Edgeware From: mdw --- tun-unet.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tun-unet.c b/tun-unet.c index 57e1397d..cc1e4072 100644 --- a/tun-unet.c +++ b/tun-unet.c @@ -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. * @@ -46,6 +49,10 @@ /*----- Main code ---------------------------------------------------------*/ +#if TUN_TYPE != TUN_UNET +# error "Tunnel type mismatch: fix the Makefile" +#endif + /* --- @t_read@ --- * * * Arguments: @int fd@ = file descriptor to read -- [mdw]