Skip to content

Commit a63fd2a

Browse files
authored
Gate SOCK_DCCP behind its own ifdef (#15031)
AIX 7.1 has SOCK_CONN_DGRAM, but not SOCK_DCCP; the previous change conflated the availability between the two definitions. Add an additional #ifdef for this.
1 parent 6857c7c commit a63fd2a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ext/sockets/sockets.stub.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959
* @cvalue SOCK_CONN_DGRAM
6060
*/
6161
const SOCK_CONN_DGRAM = UNKNOWN;
62+
#endif
63+
#ifdef SOCK_DCCP
6264
/**
63-
* is an alias of SOCK_CONN_DGRAM
65+
* is an alias of SOCK_CONN_DGRAM on some platforms
6466
* @var int
6567
* @cvalue SOCK_DCCP
6668
*/

ext/sockets/sockets_arginfo.h

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

0 commit comments

Comments
 (0)