Re: [xml] libmxl2 for BeOS



On Mon, Sep 29, 2003 at 12:11:50PM +0200, shard neoni net wrote:
Hi,

I've compiled and changed a little bit (only networking part) libxml2 
and libxslt for BeOS. I'm sure many compiled it before me but i don't 
know if someone send You patch. It would be great if BeOS could be 
"officially" supported (like CVS version compiling out-of-the-box on 
BeOS).

  This looks fine except the

-       s = socket (PF_INET, SOCK_STREAM, IPPROTO_TCP);
+       s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);

  Change. Assuming I understand things correctly PF_ values should
be used when using the socket() call and AF_ values should be used
when manipulating the socket structure directly (Protocol Familly
versus Address Familly).
  I'm surprized that PF_INET is not defined on BeOS, can you look this
up, in that case maybe the correct way to address it is to 

#ifdef __BEOS__
#ifndef PF_INET
#define PF_INET AF_INET
#endif
#endif

  Could you check this ?

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]