summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-01 19:31:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-05-01 19:31:52 +0000
commitfcf9bd9bd844ab33c2fb1d7bf200f124fc8c4cd9 (patch)
treed65d503969c10333ce7c2007fb0cd4ddf42fe3b8
parent59eed355c0cb365f3d96bff3692e840f33be0225 (diff)
downloadnginx-fcf9bd9bd844ab33c2fb1d7bf200f124fc8c4cd9.tar.gz
use off_t in $r->sendfile(), this allows to use 64-bit off_t on platforms
where IV is long: *) on 64-bit platforms, *) and on 32-bit platforms if perl was built with -Duse64bitint
-rw-r--r--src/http/modules/perl/nginx.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index 66b0f59b2..077cf0ddf 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -607,7 +607,7 @@ sendfile(r, filename, offset = -1, bytes = 0)
ngx_http_request_t *r;
char *filename;
- int offset;
+ off_t offset;
size_t bytes;
ngx_str_t path;
ngx_buf_t *b;