Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix compile without modules.



details:   https://anonhg.NetBSD.org/src/rev/84892efac79b
branches:  trunk
changeset: 817099:84892efac79b
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Aug 08 07:23:27 2016 +0000

description:
Fix compile without modules.

diffstat:

 sys/net/if_pppoe.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3ad7cf3336b0 -r 84892efac79b sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Mon Aug 08 07:10:53 2016 +0000
+++ b/sys/net/if_pppoe.c        Mon Aug 08 07:23:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.116 2016/08/08 07:23:27 roy Exp $ */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.116 2016/08/08 07:23:27 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -255,7 +255,9 @@
                if_clone_detach(&pppoe_cloner);
                softint_disestablish(pppoe_softintr);
                /* Remove our sysctl sub-tree */
+#ifdef _MODULE
                sysctl_teardown(&pppoe_sysctl_clog);
+#endif
        }
 
        return error;



Home | Main Index | Thread Index | Old Index