Skip Menu |

This queue is for tickets about the Env-C CPAN distribution.

Report information
The Basics
Id: 2203
Status: resolved
Priority: 0/
Queue: Env-C

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.02
Fixed in: (no value)



Subject: C.xs(6) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
C.xs(6) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory This is not found on win32 systems, please change it to #ifndef WIN32 #include <unistd.h> #endif You should also explicitly #include <stdlib.h> and finally, since setenv,unsetenv don't exist in microsoft land, maybe you can add a note in the README/pod about this not working on win32 unless you compiled using borland or other than MSVS, or provide workarounds (putenv,getenv)
Date: Tue, 11 Mar 2003 09:52:54 +1100
From: Stas Bekman <stas [...] stason.org>
To: bug-Env-C [...] rt.cpan.org
CC: AdminCc [...] logilune.com, of [...] logilune.com, cpan [...] logilune.com, Ticket [...] logilune.com, "#2203:" [...] logilune.com, ";" [...] logilune.com
Subject: Re: [cpan #2203] C.xs(6) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
RT-Send-Cc:
Guest via RT wrote: Show quoted text
> This message about Env-C was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=2203 > > > C.xs(6) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory > > This is not found on win32 systems, please change it to > > #ifndef WIN32 > #include <unistd.h> > #endif > > You should also explicitly > #include <stdlib.h>
yes, yes, I've fixed that. Show quoted text
> and finally, since setenv,unsetenv don't exist in microsoft land, > maybe you can add a note in the README/pod about this > not working on win32 unless you compiled using borland or other than MSVS, > or provide workarounds (putenv,getenv)
OK, so I'm adding: my %dunno = map {$_ => 1} qw(solaris MSWin32); if ($dunno{$^O}) { die "Sorry, dunno how to build for $^O"; } Thank you. Show quoted text
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com