aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 9567590581b..aec5281e43b 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -355,8 +355,11 @@ extern int fls(int mask);
#endif
#ifndef HAVE_GETPEEREID
+/* On Windows, Perl might have incompatible definitions of uid_t and gid_t. */
+#ifndef PLPERL_HAVE_UID_GID
extern int getpeereid(int sock, uid_t *uid, gid_t *gid);
#endif
+#endif
#ifndef HAVE_ISINF
extern int isinf(double x);