File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,12 @@ dnl supports it. This can help reduce the binary size and startup time.
206
206
AX_CHECK_COMPILE_FLAG ( [ -fvisibility=hidden] ,
207
207
[ CFLAGS="$CFLAGS -fvisibility=hidden"] )
208
208
209
+ dnl to disable executable stack on haiku due
210
+ dnl to missing elf .note.GNU-stack part
209
211
case $host_alias in
212
+ *haiku*)
213
+ LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
214
+ ;;
210
215
*solaris*)
211
216
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
212
217
;;
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ ZEND_DECLARE_MODULE_GLOBALS(sockets)
109
109
} \
110
110
} while (0)
111
111
#else
112
- #define PHP_ETH_PROTO_CHECK (protocol , family ) (0)
112
+ #define PHP_ETH_PROTO_CHECK (protocol , family ) \
113
+ (void)protocol; \
114
+ (void)family
113
115
#endif
114
116
115
117
static PHP_GINIT_FUNCTION (sockets );
You can’t perform that action at this time.
0 commit comments