Matthew Sachs <[EMAIL PROTECTED]> said:
> On Jun 22, 2005, at 05:05, Andreas Dittrich wrote:
>
>> I have a problem compiling pwlib. There is a duplicate typedef  
>> which is different in
>> /usr/include/sys/socket.h
>> than in
>> ./pwlib/include/ptlib/unix/ptlib/pmachdep.h
>> of the package. The one in the package defines int as the type of  
>> the socketlen
>
> Prior to Tiger, our system headers did not define socklen_t.   

socklen_t does exist (it's type int) in 10.3. So technically...

> define is coming from is include/ptlib/unix/ptlib/pmachdep.h.  There  
> are several defines of socklen_t in that file, conditionalized on  
> various macros.  To fix the package, figure out which one is applying  
> on Darwin, and wrap it with the following:
>
>      #ifdef __APPLE__
>      #include <AvailabilityMacros.h>
>      #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
>      typedef int socklen_t;
>      #endif
>      #endif

That should be MAC_OS_X_VERSION_10_ probably.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to