PHP 7.1.16 (cli) (built: Apr 10 2018 14:39:53) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
make的时候,报错
Users/lanya/swoole/src/os/sendfile.c -fno-common -DPIC -o src/os/.libs/sendfile.o
/Users/lanya/swoole/src/os/sendfile.c:23:5: error: conflicting types for 'swoole_sendfile'
int swoole_sendfile(int out_fd, int in_fd, off_t *offset, off_t size)
^
/Users/lanya/swoole/include/swoole.h:2166:5: note: previous declaration is here
int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size);
^
1 error generated.
make: *** [src/os/sendfile.lo] Error 1
lanya@lanyadeMacBook-Pro:/swoole (master)$ php -v/swoole (master)$
PHP 7.1.16 (cli) (built: Apr 10 2018 14:39:53) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
lanya@lanyadeMacBook-Pro: