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 {
|
do {
|
||||||
#ifdef __DARWIN__
|
#ifdef __DARWIN__
|
||||||
r = sendfile(infd, sock, offset, len, NULL, 0);
|
r = sendfile(infd, sock, offset, (off_t *)&len, NULL, 0);
|
||||||
#else
|
#else
|
||||||
r = sendfile(infd, sock, offset, len, NULL, &spliced, 0);
|
r = sendfile(infd, sock, offset, len, NULL, &spliced, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue