summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-04 05:59:25 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-04 05:59:25 +0000
commitb3f620dd47e5600fba9825835734892b7a7d562a (patch)
tree3077fc1a9b7aaa8b90f0b1f355693b9340f97cf7
parentf37e35485f42813399865dec89599f062d6466be (diff)
downloadcoreutils-b3f620dd47e5600fba9825835734892b7a7d562a.tar.xz
Add uname kludge to work around Mac OS X bug.
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 11d31b6f1..a964f2fa7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
+ * src/uname.c: 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/uniq.c (hard_LC_COLLATE, ignore_case, different, check_file,
main): Use bool for booleans.
(writeline, check_file): Use uintmax_t for line counts.