Mercurial > hg > octave-lyh > gnulib-hg
changeset 9394:b155c0436f27
Fix getloadavg.c on Tru64 4.0D.
* lib/getloadavg.c
[defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
Undef `sys' after including sys/table.h, for Tru64 4.0D.
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
---|---|
date | Mon, 22 Oct 2007 22:58:30 +0200 |
parents | 8aa3af4621aa |
children | 73a20c60d1b9 |
files | ChangeLog lib/getloadavg.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + * lib/getloadavg.c + [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]: + Undef `sys' after including sys/table.h, for Tru64 4.0D. + * tests/test-i-ring.c: Work for C89. 2007-10-22 Bruno Haible <bruno@clisp.org>
--- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -1,7 +1,7 @@ /* Get the system load averages. Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994, - 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006 Free Software + 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with gnulib. @@ -186,6 +186,8 @@ # include <sys/socket.h> # include <net/route.h> # include <sys/table.h> +/* Tru64 4.0D's table.h redefines sys */ +# undef sys # endif # if defined (__osf__) && (defined (mips) || defined (__mips__))