325 Star 1.6K Fork 345

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)

待办的
创建于  
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)$

评论 (1)

lanya 创建了任务
lanya 更新了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
868565 iwl 1578934360
C
1
https://gitee.com/swoole/swoole.git
git@gitee.com:swoole/swoole.git
swoole
swoole
swoole-src

搜索帮助