Skip to content

Commit 5024231

Browse files
committed
Fix build of Perl-using modules of Windows
Commit f14413b broke the build of Perl-using modules on Windows. Perl might have its own definitions of uid_t and gid_t, so we hide ours, but then we can't use ours in our header files such as port.h which don't see the Perl definition. Hide our definition of getpeereid() on Windows in Perl-using modules, using PLPERL_HAVE_UID_GID define. That means we can't portably use getpeeruid() is such modules right now, but there is no need anyway.
1 parent f14413b commit 5024231

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/port.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,11 @@ extern int fls(int mask);
355355
#endif
356356

357357
#ifndef HAVE_GETPEEREID
358+
/* On Windows, Perl might have incompatible definitions of uid_t and gid_t. */
359+
#ifndef PLPERL_HAVE_UID_GID
358360
extern int getpeereid(int sock, uid_t *uid, gid_t *gid);
359361
#endif
362+
#endif
360363

361364
#ifndef HAVE_ISINF
362365
extern int isinf(double x);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy