2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
9 #include <_bsd_types.h>
11 typedef struct in_addr
{
13 struct { u_char s_b1
, s_b2
, s_b3
, s_b4
; } S_un_b
;
14 struct { u_short s_w1
, s_w2
; } S_un_w
;
17 } IN_ADDR
, *PIN_ADDR
, *LPIN_ADDR
;
19 #define s_addr S_un.S_addr
20 #define s_host S_un.S_un_b.s_b2
21 #define s_net S_un.S_un_b.s_b1
22 #define s_imp S_un.S_un_w.s_w2
23 #define s_impno S_un.S_un_b.s_b4
24 #define s_lh S_un.S_un_b.s_b3