On 6/16/2017 9:47 PM, John E. Malmberg wrote:
On 6/16/2017 12:21 PM, Bruno Haible wrote:
Hello John,

VMS does not currently provide a sched.h and has that definition in
pthread.h instead.

Please try the attached patch.

Thank you, I will try to get to that this weekend.

The configure script is now detecting that struct sched_param is present.

The generated sched.in.h file is not including pthread.h, just the gllib/spawn.h so that the gllib/execute.c fails to build.

~~~~~
#ifdef __KLIBC__

/* On OS/2 kLIBC, struct sched_param is in spawn.h */
# include <spawn.h>

#endif

#if !1

# if !GNULIB_defined_struct_sched_param
~~~~~

Attached is a patch to lib/sched.in.patch

Regards,
-John
--- /trunk_root/gnulib/lib/sched.in.h   2017-06-01 07:48:48 -0500
+++ /vms_root/gnulib/lib/sched.in.h     2017-06-19 08:07:31 -0500
@@ -45,6 +45,11 @@
 
 #endif
 
+#ifdef __VMS
+/* On VMS, struct sched_param is in pthread.h. */
+# include <pthread.h>
+#endif
+
 #if !@HAVE_STRUCT_SCHED_PARAM@
 
 # if !GNULIB_defined_struct_sched_param

Reply via email to