libs/nixio: properly cast len argument for OS X sendfile()
This commit is contained in:
parent
6ffdb72a4d
commit
6ea063dc11
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ static int nixio_sendfile(lua_State *L) {
|
|||
|
||||
do {
|
||||
#ifdef __DARWIN__
|
||||
r = sendfile(infd, sock, offset, len, NULL, 0);
|
||||
r = sendfile(infd, sock, offset, (off_t *)&len, NULL, 0);
|
||||
#else
|
||||
r = sendfile(infd, sock, offset, len, NULL, &spliced, 0);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue