diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-03-14 14:01:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-03-14 14:01:54 +0000 |
commit | 036457f35e4e8eb05757eeccc3c77da34b3db675 (patch) | |
tree | 38b2c869e323f3ed80813afcba69f73eabe97cd7 /src | |
parent | e6bc372174dff40993978f0388d5c9b5b9f96a66 (diff) |
> (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
Diffstat (limited to 'src')
-rw-r--r-- | src/port/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/thread.c b/src/port/thread.c index 87c833abf40..9c1b3f3167b 100644 --- a/src/port/thread.c +++ b/src/port/thread.c @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $Id: thread.c,v 1.12.2.2 2004/03/02 18:38:28 momjian Exp $ + * $Id: thread.c,v 1.12.2.3 2004/03/14 14:01:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -186,7 +186,7 @@ pqGethostbyname(const char *name, * broken (well early POSIX draft) gethostbyname_r() which returns * 'struct hostent *' */ - *result = gethostbyname_r(name, resbuf, buffer, buflen, herrno); + *result = gethostbyname_r(name, resultbuf, buffer, buflen, herrno); return (*result == NULL) ? -1 : 0; #else |