diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-09-05 02:08:36 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-09-05 02:08:36 +0000 |
| commit | 2dc9437160b023870930056c754a9ad9219171c5 (patch) | |
| tree | 2d98e6e92a862bb8e69b2a262dba2a6db1219bb9 /src/interfaces/libpq/libpq-int.h | |
| parent | 1709fde56a75f424453ca62fb356e906e5ad9d9c (diff) | |
| download | postgresql-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.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 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 */ |
