]> granicus.if.org Git - postgresql/commitdiff
Looks like we can't declare getpeereid on Windows anyway.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2011 21:27:30 +0000 (17:27 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2011 21:27:30 +0000 (17:27 -0400)
... for lack of the uid_t and gid_t typedefs.  Per buildfarm.

src/include/port.h

index d7295e3132798f9d506ff653677c6f816f1e4bc9..4c7ed64317748713406a84dac7eed60f2681742b 100644 (file)
@@ -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