Ignore:
Timestamp:
Aug 4, 2007, 1:17:39 AM (14 years ago)
Author:
joshe
Message:

Use BEOS to test for beos instead of relying on the build to set SYS_BEOS.
Add missing headers and other miscellaneous fixes for beos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r2611 r2614  
    3131    typedef int socklen_t;
    3232    typedef uint16_t tr_port_t;
     33#elif defined(__BEOS__)
     34    #include <sys/socket.h>
     35    #include <netinet/in.h>
     36    typedef unsigned short tr_port_t;
     37    typedef int socklen_t;
    3338#else
    3439    #include <sys/socket.h>
     
    3641    #include <arpa/inet.h>
    3742    typedef in_port_t tr_port_t;
    38 #endif
    39 
    40 #ifdef SYS_BEOS
    41     #include <inttypes.h>
    42     typedef uint32_t socklen_t;
    4343#endif
    4444
Note: See TracChangeset for help on using the changeset viewer.