mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
- Added missing constants for MSG_EOR and MSG_EOF
This commit is contained in:
parent
5dceae6f8f
commit
3d06e9db7f
@ -68,6 +68,12 @@ static PHP_GINIT_FUNCTION(sockets);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSG_EOF
|
||||
#ifdef MSG_FIN
|
||||
#define MSG_EOF MSG_FIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SUN_LEN
|
||||
#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
|
||||
#endif
|
||||
@ -480,6 +486,12 @@ PHP_MINIT_FUNCTION(sockets)
|
||||
REGISTER_LONG_CONSTANT("MSG_WAITALL", MSG_WAITALL, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("MSG_PEEK", MSG_PEEK, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("MSG_DONTROUTE", MSG_DONTROUTE, CONST_CS | CONST_PERSISTENT);
|
||||
#ifdef MSG_EOR
|
||||
REGISTER_LONG_CONSTANT("MSG_EOR", MSG_EOR, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
#ifdef MSG_EOF
|
||||
REGISTER_LONG_CONSTANT("MSG_EOF", MSG_EOF, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
REGISTER_LONG_CONSTANT("SO_DEBUG", SO_DEBUG, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_REUSEADDR", SO_REUSEADDR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_KEEPALIVE", SO_KEEPALIVE, CONST_CS | CONST_PERSISTENT);
|
||||
|
Loading…
Reference in New Issue
Block a user