Skip to content

Commit 52871d8

Browse files
committed
MSG_EOR is not supported on MacOS even if defined
1 parent 2d39ea4 commit 52871d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static PHP_MINIT_FUNCTION(sockets)
482482
REGISTER_LONG_CONSTANT("MSG_TRUNC", MSG_TRUNC, CONST_CS | CONST_PERSISTENT);
483483
REGISTER_LONG_CONSTANT("MSG_PEEK", MSG_PEEK, CONST_CS | CONST_PERSISTENT);
484484
REGISTER_LONG_CONSTANT("MSG_DONTROUTE", MSG_DONTROUTE, CONST_CS | CONST_PERSISTENT);
485-
#ifdef MSG_EOR
485+
#if defined(MSG_EOR) && !defined(__APPLE__)
486486
REGISTER_LONG_CONSTANT("MSG_EOR", MSG_EOR, CONST_CS | CONST_PERSISTENT);
487487
#endif
488488
#ifdef MSG_EOF

0 commit comments

Comments
 (0)