Mercurial > gnulib
diff lib/getloadavg.c @ 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 | bbbbbf4cd1c5 |
children | 67a58512a933 |
line wrap: on
line diff
--- a/lib/getloadavg.c Mon Oct 22 22:44:20 2007 +0200 +++ b/lib/getloadavg.c Mon Oct 22 22:58:30 2007 +0200 @@ -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__))