Skip to content

Commit 9ef75bb

Browse files
committed
Fix compile breakage from SIGPIPE fix for threading.
1 parent e5fddaa commit 9ef75bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interfaces/libpq/fe-secure.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.59 2004/12/02 23:20:21 tgl Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.60 2004/12/03 01:58:43 momjian Exp $
1515
*
1616
* NOTES
1717
* [ 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)
429429

430430
if (n == -1)
431431
{
432+
#ifdef ENABLE_THREAD_SAFETY
432433
if (SOCK_ERRNO == EPIPE)
433434
got_epipe = true;
435+
#endif
434436
printfPQExpBuffer(&conn->errorMessage,
435437
libpq_gettext("SSL SYSCALL error: %s\n"),
436438
SOCK_STRERROR(SOCK_ERRNO, sebuf, sizeof(sebuf)));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy