[phobos] Bug somewhere in core.posix.sys.time

Sean Kelly sean at invisibleduck.org
Sat May 22 15:34:59 PDT 2010


Windows is ostensibly posix-compliant, Ive just not bothered to add  
the defs.  The Windows posix subsystem ducks enough that there's  
really little point.

Sent from my iPhone

On May 22, 2010, at 10:45 AM, Andrei Alexandrescu <andrei at erdani.com>  
wrote:

> I tried to build the HTML documentation with
>
> make html
>
> and got:
>
> wine dmd -version=ddoc -d -c -o- ../docsrc/std.ddoc -Df../web/2.0/ 
> phobos/std_gregorian.html std/gregorian.d
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys 
> \posix\signal.d(25): Error: identifier 'siginfo_t' is not defined
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys 
> \posix\signal.d(25): Error: siginfo_t is used as a type
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys 
> \posix\signal.d(195): Error: identifier 'sigset_t' is not defined
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys 
> \posix\signal.d(195): Error: sigset_t is used as a type
> Z:\home\andrei\dmd2\windows\bin\..\..\src\druntime\import\core\sys 
> \posix\signal.d(195): Error: variable  
> core.sys.posix.signal.sigaction_t.sa_mask voids have no value
> make: *** [../web/2.0/phobos/std_gregorian.html] Error 1
>
> I reduced the problem down to this definition of std.gregorian  
> (which is the culprit):
>
> module std.gregorian;
> import core.sys.posix.time;
>
> So the problem is core.sys.posix.time. Since that contains "posix"  
> in its name, does that imply it's not working on Windows? If so, you  
> may want to insert a pragma error on version windows that leaves a  
> nice error message behind.
>
> Is that possible?
>
>
> Andrei
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos


More information about the phobos mailing list