summaryrefslogtreecommitdiff
path: root/libgomp/config/posix/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/config/posix/proc.c')
-rw-r--r--libgomp/config/posix/proc.c7
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