summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-int.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-09-05 02:08:36 +0000
committerBruce Momjian <bruce@momjian.us>2003-09-05 02:08:36 +0000
commit2dc9437160b023870930056c754a9ad9219171c5 (patch)
tree2d98e6e92a862bb8e69b2a262dba2a6db1219bb9 /src/interfaces/libpq/libpq-int.h
parent1709fde56a75f424453ca62fb356e906e5ad9d9c (diff)
downloadpostgresql-2dc9437160b023870930056c754a9ad9219171c5.tar.gz
Enable Win32 to compile libpq again, and enable SSL compiles on that
platform. Andreas Pflug
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r--src/interfaces/libpq/libpq-int.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h
index 49cd29cb6c..40b161f78d 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.82 2003/09/05 02:08:36 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 */