Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b76c536

Browse files
committed
> (I also see some post-7.4.1 changes in src/template/solaris, so you
> possibly should look there too.) [snip] > I think I have the fix for part of it, but this remains... gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC -I. -I../../../src/include -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' -c -o thread.o thread.c thread.c: In function `pqGethostbyname': thread.c:189: error: `resbuf' undeclared (first use in this function) Looking at src/port/thread.c, line 189, it looks like somebody typo'd. Looks like that second parameter should be "resultbuf", not "resbuf"? Jim Seymour
1 parent 757fb0e commit b76c536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
99
*
10-
* $PostgreSQL: pgsql/src/port/thread.c,v 1.16 2004/03/02 18:35:59 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/thread.c,v 1.17 2004/03/14 14:01:43 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -137,7 +137,7 @@ pqGethostbyname(const char *name,
137137
* broken (well early POSIX draft) gethostbyname_r() which returns
138138
* 'struct hostent *'
139139
*/
140-
*result = gethostbyname_r(name, resbuf, buffer, buflen, herrno);
140+
*result = gethostbyname_r(name, resultbuf, buffer, buflen, herrno);
141141
return (*result == NULL) ? -1 : 0;
142142

143143
#else

0 commit comments

Comments
 (0)