316 Star 1.5K Fork 325

GVPswoole / swoole-src

 / 详情

mac上面编译的时候报错error: conflicting types for 'swoole_sendfile' ** int swoole_sendfile(int out_fd, int in_fd, off_t *offset, off_t size)

Backlog
Opened this issue  
2018-04-10 15:39

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
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:
/swoole (master)$

Comments (1)

lanya created 任务
lanya updated 任务

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
868565 iwl 1578934360
C
1
https://git.oschina.net/swoole/swoole.git
git@git.oschina.net:swoole/swoole.git
swoole
swoole
swoole-src

Search