diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-23 18:28:51 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-23 18:28:51 +0000 |
commit | 138f59be670f9c73dfea48ac4153227f92e30ec7 (patch) | |
tree | 8d13fe4ae78bc89d5119bc9ac9a016ba1156ce77 /libgomp/config | |
parent | 6cf0bc8c8b789cc8045faebeb8ada8697e04e719 (diff) | |
download | gcc-138f59be670f9c73dfea48ac4153227f92e30ec7.tar.gz |
2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
* config/posix/proc.c: Conditional include of sys/loadavg.h for
Solaris.
* configure.ac: Add check for loadavg.h.
(link_gomp): Adjust comment.
* configure: Regenerate.
* config.h.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110141 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/config')
-rw-r--r-- | libgomp/config/posix/proc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/config/posix/proc.c b/libgomp/config/posix/proc.c index 3f5eb7ddc11..3ee84f5c9d6 100644 --- a/libgomp/config/posix/proc.c +++ b/libgomp/config/posix/proc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU OpenMP Library (libgomp). @@ -34,6 +34,11 @@ #include "libgomp.h" #include <unistd.h> #include <stdlib.h> +#ifdef HAVE_GETLOADAVG +# ifdef HAVE_SYS_LOADAVG_H +# include <sys/loadavg.h> +# endif +#endif /* At startup, determine the default number of threads. It would seem |