Skip to content

Commit 3b012b9

Browse files
committed
socket ext: solaris systems build fix.
enabling the proper ancillary data handling layout and api.
1 parent d963b3f commit 3b012b9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ext/sockets/conversions.c

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

ext/sockets/sendrecvmsg.c

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

17+
#ifdef __sun
18+
/* to enable 'new' ancillary data layout instead */
19+
#define __EXTENSIONS__
20+
#define _XPG4_2
21+
#endif
1722
#include <php.h>
1823
#include "php_sockets.h"
1924
#include "sendrecvmsg.h"

0 commit comments

Comments
 (0)