Module Name:    src
Committed By:   pooka
Date:           Sun Aug 11 09:07:15 UTC 2013

Modified Files:
        src/sys/compat/linux/common: linux_misc.c

Log Message:
Allow to build in envs without USRSTACK (namely, rump kernels on powerpc).
TODO: all of the m*() calls are by definition incompatible with rump
kernels; including them is no great damage, but they're not useful either.


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/sys/compat/linux/common/linux_misc.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/compat/linux/common/linux_misc.c
diff -u src/sys/compat/linux/common/linux_misc.c:1.223 src/sys/compat/linux/common/linux_misc.c:1.224
--- src/sys/compat/linux/common/linux_misc.c:1.223	Mon Apr 15 19:24:04 2013
+++ src/sys/compat/linux/common/linux_misc.c	Sun Aug 11 09:07:15 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_misc.c,v 1.223 2013/04/15 19:24:04 christos Exp $	*/
+/*	$NetBSD: linux_misc.c,v 1.224 2013/08/11 09:07:15 pooka Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.223 2013/04/15 19:24:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.224 2013/08/11 09:07:15 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -539,6 +539,7 @@ done:
 	return error;
 }
 
+#ifdef USRSTACK
 int
 linux_sys_mprotect(struct lwp *l, const struct linux_sys_mprotect_args *uap, register_t *retval)
 {
@@ -604,6 +605,7 @@ linux_sys_mprotect(struct lwp *l, const 
 	vm_map_unlock(map);
 	return uvm_map_protect(map, start, end, prot, FALSE);
 }
+#endif /* USRSTACK */
 
 /*
  * This code is partly stolen from src/lib/libc/compat-43/times.c

Reply via email to