]> granicus.if.org Git - postgresql/commitdiff
Fix compile breakage from SIGPIPE fix for threading.
authorBruce Momjian <bruce@momjian.us>
Fri, 3 Dec 2004 01:58:43 +0000 (01:58 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 3 Dec 2004 01:58:43 +0000 (01:58 +0000)
src/interfaces/libpq/fe-secure.c

index a40b92065b9983b1d9cbbe79df8dd2e33243632c..a42173536747f21052877bc53113b0ae750e79eb 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.59 2004/12/02 23:20:21 tgl Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.60 2004/12/03 01:58:43 momjian Exp $
  *
  * NOTES
  *       [ Most of these notes are wrong/obsolete, but perhaps not all ]
@@ -429,8 +429,10 @@ pqsecure_write(PGconn *conn, const void *ptr, size_t len)
 
                                        if (n == -1)
                                        {
+#ifdef ENABLE_THREAD_SAFETY
                                                if (SOCK_ERRNO == EPIPE)
                                                        got_epipe = true;
+#endif
                                                printfPQExpBuffer(&conn->errorMessage,
                                                                libpq_gettext("SSL SYSCALL error: %s\n"),
                                                SOCK_STRERROR(SOCK_ERRNO, sebuf, sizeof(sebuf)));