Module Name: src Committed By: matt Date: Sat Mar 5 14:27:48 UTC 2011
Modified Files: src/sys/arch/powerpc/include: param.h Log Message: If _KERNEL is not defined, force MACHINE to be "powerpc". Userland should be using uname/sysctl to get this value. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/include/param.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/arch/powerpc/include/param.h diff -u src/sys/arch/powerpc/include/param.h:1.22 src/sys/arch/powerpc/include/param.h:1.23 --- src/sys/arch/powerpc/include/param.h:1.22 Mon Mar 22 02:14:28 2010 +++ src/sys/arch/powerpc/include/param.h Sat Mar 5 14:27:48 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.22 2010/03/22 02:14:28 mrg Exp $ */ +/* $NetBSD: param.h,v 1.23 2011/03/05 14:27:48 matt Exp $ */ /*- * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -45,7 +45,11 @@ /* * Machine dependent constants for PowerPC (32-bit only currently) + * For userland regardless of port, force MACHINE to be "powerpc" */ +#ifndef _KERNEL +#undef MACHINE +#endif #ifndef MACHINE #define MACHINE "powerpc" #endif