> (I also see some post-7.4.1 changes in src/template/solaris, so you
authorBruce Momjian <[email protected]>
Sun, 14 Mar 2004 14:01:54 +0000 (14:01 +0000)
committerBruce Momjian <[email protected]>
Sun, 14 Mar 2004 14:01:54 +0000 (14:01 +0000)
> 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

src/port/thread.c

index 83ca75a0cdf9642e46cc349663250460fdee8048..a8c355cf74e50276afb907c77cbf3cf3048d19aa 100644 (file)
@@ -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