summaryrefslogtreecommitdiff
path: root/lib/sched.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-06-19 16:54:55 +0200
committerBruno Haible <bruno@clisp.org>2017-06-19 16:54:55 +0200
commit7e09770c672095d08d974f00d70bc0bccb288640 (patch)
treefbfccd5398f71c846a05fe6445c991ca488d90f1 /lib/sched.in.h
parent002ac8b180f58136efb17f2a6ebc4bd991b1417d (diff)
downloadgnulib-7e09770c672095d08d974f00d70bc0bccb288640.tar.gz
sched: Fix compilation failure on OpenVMS.
* m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS, test whether <pthread.h> exists and defines struct sched_param. * lib/sched.in.h: On OpenVMS, include <pthread.h>.
Diffstat (limited to 'lib/sched.in.h')
-rw-r--r--lib/sched.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sched.in.h b/lib/sched.in.h
index aa96aed598..6b4bde8370 100644
--- a/lib/sched.in.h
+++ b/lib/sched.in.h
@@ -39,10 +39,13 @@
#include <sys/types.h>
#ifdef __KLIBC__
-
-/* On OS/2 kLIBC, struct sched_param is in spawn.h */
+/* On OS/2 kLIBC, struct sched_param is in spawn.h. */
# include <spawn.h>
+#endif
+#ifdef __VMS
+/* On OpenVMS, struct sched_param is in <pthread.h>. */
+# include <pthread.h>
#endif
#if !@HAVE_STRUCT_SCHED_PARAM@