Module Name:    src
Committed By:   christos
Date:           Fri Apr 24 19:49:24 UTC 2015

Modified Files:
        src/sys/dev/sysmon: swwdog.c

Log Message:
We only need the _cd when we are a module.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/sysmon/swwdog.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/dev/sysmon/swwdog.c
diff -u src/sys/dev/sysmon/swwdog.c:1.16 src/sys/dev/sysmon/swwdog.c:1.17
--- src/sys/dev/sysmon/swwdog.c:1.16	Thu Apr 23 19:23:01 2015
+++ src/sys/dev/sysmon/swwdog.c	Fri Apr 24 15:49:24 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: swwdog.c,v 1.16 2015/04/23 23:23:01 pgoyette Exp $	*/
+/*	$NetBSD: swwdog.c,v 1.17 2015/04/24 19:49:24 christos Exp $	*/
 
 /*
  * Copyright (c) 2004, 2005 Steven M. Bellovin
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: swwdog.c,v 1.16 2015/04/23 23:23:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: swwdog.c,v 1.17 2015/04/24 19:49:24 christos Exp $");
 
 /*
  *
@@ -71,7 +71,9 @@ static device_t		swwdog_dev;
 
 MODULE(MODULE_CLASS_DRIVER, swwdog, "sysmon_wdog");
 
+#ifdef _MODULE
 CFDRIVER_DECL(swwdog, DV_DULL, NULL);
+#endif
 
 int swwdogattach(int);
 

Reply via email to