svn commit: r232763 - head/sys/dev/wtap
Adrian Chadd
adrian at FreeBSD.org
Sat Mar 10 04:02:52 UTC 2012
Author: adrian
Date: Sat Mar 10 04:02:52 2012
New Revision: 232763
URL: http://svn.freebsd.org/changeset/base/232763
Log:
Enforce that wtap requires VIMAGE to be useful.
Modified:
head/sys/dev/wtap/if_wtap.c
Modified: head/sys/dev/wtap/if_wtap.c
==============================================================================
--- head/sys/dev/wtap/if_wtap.c Sat Mar 10 02:58:15 2012 (r232762)
+++ head/sys/dev/wtap/if_wtap.c Sat Mar 10 04:02:52 2012 (r232763)
@@ -40,6 +40,13 @@
#include <net80211/ieee80211_ratectl.h>
#include "if_medium.h"
+/*
+ * This _requires_ vimage to be useful.
+ */
+#ifndef VIMAGE
+#error if_wtap requires VIMAGE.
+#endif /* VIMAGE */
+
/* device for IOCTL and read/write for debuggin purposes */
/* Function prototypes */
static d_open_t wtap_node_open;
More information about the svn-src-all
mailing list