Module Name:    src
Committed By:   pgoyette
Date:           Sun Aug 22 14:12:10 UTC 2010

Modified Files:
        src/sys/sys: systm.h

Log Message:
Only define kernconfig_lock routines for _KERNEL

Fixes i386 build problem reported by Juergen Hannken-Illjes.


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/systm.h
diff -u src/sys/sys/systm.h:1.240 src/sys/sys/systm.h:1.241
--- src/sys/sys/systm.h:1.240	Sat Aug 21 13:17:32 2010
+++ src/sys/sys/systm.h	Sun Aug 22 14:12:10 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: systm.h,v 1.240 2010/08/21 13:17:32 pgoyette Exp $	*/
+/*	$NetBSD: systm.h,v 1.241 2010/08/22 14:12:10 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -492,10 +492,12 @@
 void	_kernel_lock(int);
 void	_kernel_unlock(int, int *);
 
+#ifdef _KERNEL
 void	kernconfig_lock_init(void);
 void	kernconfig_lock(void);
 void	kernconfig_unlock(void);
 bool	kernconfig_is_held(void);
+#endif
 
 #if defined(MULTIPROCESSOR) || defined(_MODULE)
 #define	KERNEL_LOCK(count, lwp)			\

Reply via email to