Hmm, this still fails on AIX, since the guard (PARROT_HAS_HEADER_SYSSOCKIO) and the 
header (sys/socket.h) don't match.  I don't have sys/sockio.h, but sys/socket.h is 
required to prevent the same sizeof(incomplete type) error that Michael reported.  
There's no $Config{i_syssocket}, though, so it can't just be changed to 
PARROT_HAS_HEADER_SYSSOCKET, unless sys/socket.h is added to the list of in 
config/auto/headers.pl.  A patch for that and the guard is attached.

> -----Original Message-----
> From: Michael Scott (via RT) 
> [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 11, 2003 3:16 PM
> To: [EMAIL PROTECTED]
> Subject: [perl #24188] [PATCH] io/io_unix.c fails on OS X 
> 
> 
> # New Ticket Created by  Michael Scott 
> # Please include the string:  [perl #24188]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24188 >
> 
> 
> The file io/io_unix.c is failing to compile on OS X 10.2.6 
> with gcc 3.3 
> with the following error:
> 
>       io/io_unix.c: In function `PIO_sockaddr_in':
>       io/io_unix.c:451: error: invalid application of `sizeof' to an 
> incomplete type
>       make: *** [io/io_unix.o] Error 1
> 
> The attached patch adds a conditional include for sys/socket.t.
> 
> 
> 
> -- attachment  1 
> ------------------------------------------------------
> url: http://rt.perl.org/rt2/attach/65951/49265/da818d/io_unix_c.patch
> 
> 

Attachment: io.patch
Description: io.patch

Reply via email to