Re: Client build of MSVC6+ patch - Mailing list pgsql-patches

From Hiroshi Saito
Subject Re: Client build of MSVC6+ patch
Date
Msg-id 015e01c69a56$e562cc00$e2110dde@IBMC4B5932F74B
Whole thread Raw
In response to Re: Client build of MSVC6+ patch  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
Responses Re: Client build of MSVC6+ patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi.

>>> If IPv6 gets broken after all the trouble several of us went to I'll
>>> be  annoyed. :-)
>>
>> Um, I think that this was the origin in problem.:-)
>>
>
> Why do we need to reorder the fields in the struct?

Eh? Even my FreeBSD used well shows a structure object.
(FreeBSD)
/usr/include/netdb.h
struct addrinfo {
        int     ai_flags;       /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
        int     ai_family;      /* PF_xxx */
        int     ai_socktype;    /* SOCK_xxx */
        int     ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
        size_t  ai_addrlen;     /* length of ai_addr */
        char    *ai_canonname;  /* canonical name for hostname */
        struct  sockaddr *ai_addr;      /* binary address */
        struct  addrinfo *ai_next;      /* next structure in linked list */
};

Then, It was helped actually.

Regards,
Hiroshi Saito


pgsql-patches by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Client build of MSVC6+ patch
Next
From: Tom Lane
Date:
Subject: Re: Client build of MSVC6+ patch