summaryrefslogtreecommitdiff
path: root/src/include/getaddrinfo.h
AgeCommit message (Collapse)Author
2008-01-01Update copyrights in source tree to 2008.Bruce Momjian
2007-11-21WSATYPE_NOT_FOUND was already defined for BCC so don't redefine itBruce Momjian
(conflicting values).
2007-01-05Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian
back-stamped for this.
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-07-06WIN32 fixes:Bruce Momjian
I take out patch for this as a promise. This is client-build support of MS-VC6+. Fix for different getaddrinfo structure ordering on Win32 for IPv6. Hiroshi Saito
2006-06-07Prepare code to be built by MSVC:Bruce Momjian
o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
2006-03-05Update copyright for 2006. Update scripts.Bruce Momjian
2005-12-08Disble some Win32-specific code in win32-client-only builds:Bruce Momjian
I have the problem, when building by MS-VC6. An error occurs in the 8.1.0 present source codes. nmake -f win32.mak ..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY' ..\..\port\getaddrinfo.c(342) : error C2065: 'WSATYPE_NOT_FOUND' This is used by winsock2.h. However, Construction of a windows base is winsock.h. Then, Since MinGW has special environment, this is right. but, it is not found in VC6. Furthermore, in getaddrinfo.c, IPV6-API is used by LoadLibraryA("ws2_32"); Referring to of dll the external memory generates this violation by VC6 specification. I considered whether the whole should have been converted into winsock2. However, Now, DLL of MinGW creation operates wonderfully as it is. That's right, it has pliability by replacement of simple DLL. Then, I propose the system using winsock(non IPV6) in construction of VC6. Hiroshi Saito
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-08-25Fix bogus freeaddrinfo() call in WIN32 code, extend gai_strerror toTom Lane
cover more error codes. Per Petr Jelinek.
2005-07-27Fix a few macro definitions to ensure that unary minus is enclosed inNeil Conway
parentheses. This avoids possible operator precedence problems, and is consistent with most of the macro definitions in the tree.
2005-01-01Some more missed copyright notices. Many of these look like theyTom Lane
should have been caught by the src/tools/copyright script ... why weren't they?
2004-09-27Add new macro as shorthand for MS VC and Borland C++:Bruce Momjian
+ #if defined(_MSC_VER) || defined(__BORLANDC__) + #define WIN32_CLIENT_ONLY + #endif
2003-11-29make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon
2003-08-14Workaround for platforms that have getaddrinfo() without AI_NUMERICHOST.Tom Lane
We don't actually need the flag, so just #define it as zero in such cases.
2003-08-08Another pgindent run with updated typedefs.Bruce Momjian
2003-08-07Don't use HAVE_STRUCT_ADDRINFO as a guide to whether netdb.h definesTom Lane
macros like AI_NUMERICHOST; instead, test the macros individually. Should fix recent reports of trouble on AIX and Unixware.
2003-08-04pgindent run.Bruce Momjian
2003-07-23Have a go at fixing various outstanding portability issues in code thatTom Lane
was modified for IPv6. Use a robust definition of struct sockaddr_storage, do a proper configure test to see if ss_len exists, don't assume that getnameinfo() will handle AF_UNIX sockets, don't trust getaddrinfo to return the protocol we ask for, etc. This incorporates several outstanding patches from Kurt Roeckx, but I'm to blame for anything that doesn't work ...
2003-06-12Attached is the complete diff against current CVS.Bruce Momjian
Compiles on BCC 5.5 and VC++ 6.0 (with warnings). Karl Waclawek
2003-06-12Back out patch that got bundled into another patch.Bruce Momjian
2003-06-12New patch with corrected README attached.Bruce Momjian
Also quickly added mention that it may be a qualified schema name. Rod Taylor
2003-06-12IPv6 cleanups.Bruce Momjian
Kurt Roeckx Andrew Dunstan
2003-04-02Whack getaddrinfo() patch around until it works, more or less, onTom Lane
machines without IPv6. Or at least it works on HPUX 10.20 ...
2003-03-29Simplify the socket handling code by supplying a replacement getaddrinfo()Peter Eisentraut
function if the OS doesn't provide one.