From: Tom Lane Date: Thu, 2 Jun 2011 21:27:30 +0000 (-0400) Subject: Looks like we can't declare getpeereid on Windows anyway. X-Git-Tag: REL9_1_BETA2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=680ea6a6df345218f655eaad2c25f98900487438;p=postgresql Looks like we can't declare getpeereid on Windows anyway. ... for lack of the uid_t and gid_t typedefs. Per buildfarm. --- diff --git a/src/include/port.h b/src/include/port.h index d7295e3132..4c7ed64317 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -395,7 +395,7 @@ extern void srand48(long seed); extern int getopt(int nargc, char *const * nargv, const char *ostr); #endif -#ifndef HAVE_GETPEEREID +#if !defined(HAVE_GETPEEREID) && !defined(WIN32) extern int getpeereid(int sock, uid_t *uid, gid_t *gid); #endif