Module Name:    src
Committed By:   jmcneill
Date:           Sun Aug 28 18:48:14 UTC 2011

Modified Files:
        src/sys/miscfs/procfs: procfs_linux.c

Log Message:
both LINUX_USRSTACK32 and USRSTACK32 need to be defined for linux32


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/miscfs/procfs/procfs_linux.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/miscfs/procfs/procfs_linux.c
diff -u src/sys/miscfs/procfs/procfs_linux.c:1.59 src/sys/miscfs/procfs/procfs_linux.c:1.60
--- src/sys/miscfs/procfs/procfs_linux.c:1.59	Mon Dec 20 00:25:47 2010
+++ src/sys/miscfs/procfs/procfs_linux.c	Sun Aug 28 18:48:14 2011
@@ -1,4 +1,4 @@
-/*      $NetBSD: procfs_linux.c,v 1.59 2010/12/20 00:25:47 matt Exp $      */
+/*      $NetBSD: procfs_linux.c,v 1.60 2011/08/28 18:48:14 jmcneill Exp $      */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.59 2010/12/20 00:25:47 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.60 2011/08/28 18:48:14 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -96,7 +96,7 @@
 			break;
 		}
 	}
-#ifdef LINUX_USRSTACK32
+#if defined(LINUX_USRSTACK32) && defined(USRSTACK32)
 	if (strcmp(p->p_emul->e_name, "linux32") == 0 &&
 	    LINUX_USRSTACK32 < USRSTACK32)
 		*sstack = (unsigned long)LINUX_USRSTACK32;

Reply via email to