HI,

        Just a quick question.  I'm writing an application that needs to be able
to compile under both linux and win32.  I noticed the definations of
in_addr are different for these two systems.  Which of these conforms to
BSD (or ANSI)?

linux:
<netinet/in.h>

struct in_addr {
        uint_32_t s_addr;
};

win:

struct in_addr {
        union {
                struct { u_char s_b1,s_b2,s_b3,s_b4; } S_un_b;
                struct { u_short s_w1,s_w2; } S_un_w;
                u_long S_addr;
        } S_un;
}; 

Brad.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to