diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-09-07 04:37:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-09-07 04:37:13 +0000 |
commit | c40ed5131948495a30caac2efff7927b673cd2d0 (patch) | |
tree | 4ee7a43fa571f53a370e60d0be421f4c6927c97f /src/interfaces/libpq/libpq-int.h | |
parent | 432ca9116bc51f6cfe6e88be33dbe6cb078cda9d (diff) |
Update this branch to match CVS head, includes WIN32 improvements.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 49cd29cb6c8..bef102fb2d8 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-int.h,v 1.81 2003/08/13 18:56:21 tgl Exp $ + * $Id: libpq-int.h,v 1.81.2.1 2003/09/07 04:37:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -465,9 +465,11 @@ __attribute__((format_arg(1))); #ifdef WIN32 #define SOCK_ERRNO (WSAGetLastError()) #define SOCK_STRERROR winsock_strerror +#define SOCK_ERRNO_SET(e) WSASetLastError(e) #else #define SOCK_ERRNO errno #define SOCK_STRERROR pqStrerror +#define SOCK_ERRNO_SET(e) errno=e #endif #endif /* LIBPQ_INT_H */ |