Skip to content

Commit dfe3bfe

Browse files
committed
Guard Linux-specific P_PIDFD constant
1 parent 712b536 commit dfe3bfe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ext/pcntl/pcntl.stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@
6363
* @cvalue LONG_CONST(P_PGID)
6464
*/
6565
const P_PGID = UNKNOWN;
66+
#ifdef __linux__
6667
/**
6768
* @var int
6869
* @cvalue LONG_CONST(P_PIDFD)
6970
*/
7071
const P_PIDFD = UNKNOWN;
72+
#endif
7173

7274
/* Signal Constants */
7375

ext/pcntl/pcntl_arginfo.h

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)