Then just convert yourself the structure:
uses ctypes;
{$packrecords c}
type
addrinfo = record
ai_flags: cint;
ai_family: cint;
ai_socktype: cint;
ai_protocol: cint;
ai_addrlen: csize_t;
ai_canonname: PChar;
ai_addr: Psockaddr;
ai_next: Paddrinfo;
end;
Paddrinfo = ^addrinfo;
ADDRINFOA = addrinfo;
PADDRINFOA = Paddrinfo;
and similarly for whatever else you need. You might also want to make a patch for this unit so that this gets included in future fpc releases. Note that there is also a unit winsock2, not sure if this type should go to both.