Do not depend on HAVE_SYSCTL when deciding
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Aug 2004 05:58:43 +0000 (05:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Aug 2004 05:58:43 +0000 (05:58 +0000)
commitf37e35485f42813399865dec89599f062d6466be
tree632f41b5816a5651c1b5bcef7f0daa10b9fbbfc0
parent28e596787954ef0ea22a6a311c72faf88d090ddb
Do not depend on HAVE_SYSCTL when deciding
whether to include files.  Include <sys/param.h> if
HAVE_SYS_PARAM_H (not HAVE_SYSCTL).
(main) [defined __POWERPC__]: Add a kludge to work around a
Mac OS X bug, so that uname -p defaults to "powerpc" if
sysctl ((int[]) {CTL_HW, HW_MACHINE_ARCH}, 2, buffer, &bufsize, 0, 0)
fails.  Problem reported by Petter Reinholdtsen in:
http://lists.gnu.org/archive/html/bug-gnu-utils/2003-02/msg00201.html
src/uname.c