Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ dnl supports it. This can help reduce the binary size and startup time.
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[CFLAGS="$CFLAGS -fvisibility=hidden"])

dnl to disable executable stack on haiku due
dnl to missing elf .note.GNU-stack part
case $host_alias in
*haiku*)
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
;;
*solaris*)
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
Expand Down
4 changes: 3 additions & 1 deletion ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ ZEND_DECLARE_MODULE_GLOBALS(sockets)
} \
} while (0)
#else
#define PHP_ETH_PROTO_CHECK(protocol, family) (0)
#define PHP_ETH_PROTO_CHECK(protocol, family) \
(void)protocol; \
(void)family
#endif

static PHP_GINIT_FUNCTION(sockets);
Expand Down