Skip to content

Commit ddb04d4

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix Solaris builds of ext/sockets
2 parents e3ef7bb + f16d35c commit ddb04d4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ext/sockets/conversions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#ifdef __sun
2+
/* to enable 'new' ancillary data layout instead */
3+
# define _XPG4_2
4+
#endif
15
#include "sockaddr_conv.h"
26
#include "conversions.h"
37
#include "sendrecvmsg.h" /* for ancillary registry */

ext/sockets/sendrecvmsg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
+----------------------------------------------------------------------+
1515
*/
1616

17+
#ifdef __sun
18+
/* to enable 'new' ancillary data layout instead */
19+
# define _XPG4_2
20+
#endif
1721
#include <php.h>
1822
#include "php_sockets.h"
1923
#include "sendrecvmsg.h"

0 commit comments

Comments
 (0)