Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5024231

Browse files
committed
Fix build of Perl-using modules of Windows
Commitf14413b broke the build ofPerl-using modules on Windows.Perl might have its own definitions of uid_t and gid_t, so we hideours, but then we can't use ours in our header files such as port.hwhich 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 usegetpeeruid() is such modules right now, but there is no need anyway.
1 parentf14413b commit5024231

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 intfls(int mask);
355355
#endif
356356

357357
#ifndefHAVE_GETPEEREID
358+
/* On Windows, Perl might have incompatible definitions of uid_t and gid_t. */
359+
#ifndefPLPERL_HAVE_UID_GID
358360
externintgetpeereid(intsock,uid_t*uid,gid_t*gid);
359361
#endif
362+
#endif
360363

361364
#ifndefHAVE_ISINF
362365
externintisinf(doublex);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp