Skip to content

Commit bb66612

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

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)