At 07:40 PM 1/25/2002 -0800, Brent Dax wrote:
>Melvin Smith:
># HAS_HEADER_ERRNO does not exist and errno.h is not wrapped
># in this ifdef. Hopefully the Config police can fix this, I
># ran into this
># while working on an embedded compile and Configure is not a
># module I am useful with.
>
>That's odd.  Does your Perl 5 have i_errno defined in Config.pm?  If so,
>then Parrot should have HAS_HEADER_ERRNO defined as well.  (If your
>Config.pm makes no mention of i_errno, then you shouldn't expect to see
>HAS_HEADER_ERRNO.)
Nope, it isn't defined. Why I mentioned it is I was working on
compiling for WindowsCE for an iPAQ and <errno.h> was included
regardless of config. WinCE SDK doesn't have errno.h (I can fake it though)
but I figured it we should have an ifdef around the include.

Basically for embedded environments I have to fudge stuff because the
config runs, for example, on my Win2000 box where I have Microsoft
Embedded Visual Tools, but it generates a config for Win32 (not for WinCE).
I then was just hand patching to fix stuff.

I just wasnt sure how to address this; I added the ifdef HAS_HEADER_ERRNO
to get a compile but if I committed this patch then everyone else's would
break because, while 99% of systems have <errno.h>, the #define wont exist.

I guess what I _could_ do is:

#ifndef WIN32_PLATFORM_PSPC   /* PocketPC */
#       include <errno.h>
#endif

But I don't think this was the way to fix this.

-Melvin


Reply via email to