bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VMS has struct sched_param in pthread.h


From: Bruno Haible
Subject: Re: VMS has struct sched_param in pthread.h
Date: Fri, 16 Jun 2017 19:21:27 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-79-generic; KDE/5.18.0; x86_64; ; )

Hello John,

> The make step on VMS next stopped at glthread/cond.c with:
> 
> cc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC 
> -DEXEEXT=\"\" -I. -I..  -DGNULIB_STRICT_CHECKING=1   -g -c -o 
> glthread/cond.o glthread/cond.c
> 
> struct sched_param
> ^
> %CC-E-REDEFSTRUCT, In this declaration, the struct "sched_param" is 
> redefined.
> at line number 52 in file LCL_ROOT:[gnulib.gllib]sched.h;1
> make[4]: *** [glthread/cond.o] Error 2
> 
> VMS does not currently provide a sched.h and has that definition in 
> pthread.h instead.

Please try the attached patch.

Please also tell us identification of your environment:
  - Is it "VMS"? Or "OpenVMS"?
  - Which version? You're talking about 7.3 here, 8.2 there, 8.4 then...
  - [Not for this patch, but for other ones.] What's the best C preprocessor
    conditionals for your environment? According to predef.sf.net, I guess
    it's __DECC for the compiler and __VMS for the operating system?
    Conditionalized with __VMS_VER >= 82000000 or __VMS_VER >= 84000000 ?

Bruno

Attachment: sched.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]