Module Name: src
Committed By: christos
Date: Thu Jun 12 16:43:09 UTC 2014
Modified Files:
src/sys/net: if_stf.c
Log Message:
PR/48901: Fail at compile time when trying to compile stf without inet6,
and print an explanatory message.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/net/if_stf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_stf.c
diff -u src/sys/net/if_stf.c:1.79 src/sys/net/if_stf.c:1.80
--- src/sys/net/if_stf.c:1.79 Thu Jun 5 19:48:16 2014
+++ src/sys/net/if_stf.c Thu Jun 12 12:43:09 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: if_stf.c,v 1.79 2014/06/05 23:48:16 rmind Exp $ */
+/* $NetBSD: if_stf.c,v 1.80 2014/06/12 16:43:09 christos Exp $ */
/* $KAME: if_stf.c,v 1.62 2001/06/07 22:32:16 itojun Exp $ */
/*
@@ -75,9 +75,12 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.79 2014/06/05 23:48:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.80 2014/06/12 16:43:09 christos Exp $");
#include "opt_inet.h"
+#ifndef INET6
+ #error "pseudo-device stf requires options INET6"
+#endif
#include <sys/param.h>
#include <sys/systm.h>