bug-bash
[Top][All Lists]
Advanced

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

Re: lib/sh/mktime.c VMS specific code is not needed.


From: John E. Malmberg
Subject: Re: lib/sh/mktime.c VMS specific code is not needed.
Date: Mon, 04 Jun 2012 17:39:43 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0

On 6/4/2012 8:05 AM, Chet Ramey wrote:
On 6/2/12 7:51 PM, John Malmberg wrote:
The lib/sh/mktime.c module has a VMS specific include of<sys/types.h>  to
pick up time_t.

No, it doesn't.  VMS systems include<stddef.h>.

I see I read it wrong.

On VMS, the time_t type is defined in the<time.h>  module.

So this VMS specific include can be removed.

So there is nothing in<stddef.h>  that VMS requires for<time.h>?  That is
the reason for that code block.

That is correct.  On VMS, <time.h> will pull in everything that it needs.

I also posted on May 12th, that VMS specific code in lib/glob/ndir.h was obsolete and would not work on current versions of VMS. That header file is also not used when building bash on VMS, so it can just be removed. I did not see any responses to that.

Regards,
-John



reply via email to

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