Skip to content
Snippets Groups Projects
Commit b557be50 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix for no hterror().

parent 2150c2ed
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: pqcomm.c,v 1.110 2000/11/13 15:18:09 momjian Exp $ * $Id: pqcomm.c,v 1.111 2000/11/13 21:31:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -255,8 +255,8 @@ StreamServerPort(int family, char *hostName, unsigned short portName, ...@@ -255,8 +255,8 @@ StreamServerPort(int family, char *hostName, unsigned short portName,
if ((hp == NULL) || (hp->h_addrtype != AF_INET)) if ((hp == NULL) || (hp->h_addrtype != AF_INET))
{ {
snprintf(PQerrormsg, PQERRORMSG_LENGTH, snprintf(PQerrormsg, PQERRORMSG_LENGTH,
"FATAL: StreamServerPort: gethostbyname(%s) failed: %s\n", "FATAL: StreamServerPort: gethostbyname(%s) failed\n",
hostName, hstrerror(h_errno)); hostName);
fputs(PQerrormsg, stderr); fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg); pqdebug("%s", PQerrormsg);
return STATUS_ERROR; return STATUS_ERROR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment