Skip to content

Commit fc54ce3

Browse files
committed
Fix -Wimplicit-function-declaration in configure
1 parent 4908108 commit fc54ce3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config.m4

+4-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ if test "$PHP_APCU" != "no"; then
9292
AC_RUN_IFELSE([AC_LANG_SOURCE([[
9393
#include <sys/types.h>
9494
#include <pthread.h>
95-
main() {
95+
#include <stdio.h>
96+
int main() {
9697
pthread_rwlock_t rwlock;
9798
pthread_rwlockattr_t attr;
9899
@@ -143,7 +144,8 @@ if test "$PHP_APCU" != "no"; then
143144
AC_RUN_IFELSE([AC_LANG_SOURCE([[
144145
#include <sys/types.h>
145146
#include <pthread.h>
146-
main() {
147+
#include <stdio.h>
148+
int main() {
147149
pthread_mutex_t mutex;
148150
pthread_mutexattr_t attr;
149151

0 commit comments

Comments
 (0)