Skip to content

Commit 8c209fa

Browse files
authored
fix(auxiliary/nginx) set off_t to 64bit per nginx config (#32)
Fix #16
1 parent 8bfde1b commit 8c209fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resty/openssl/auxiliary/nginx.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ else
1212
local ffi = require "ffi"
1313

1414
ffi.cdef [[
15-
typedef long off_t;
15+
// Nginx seems to always config _FILE_OFFSET_BITS=64, this should always be 8 byte
16+
typedef long long off_t;
1617
typedef unsigned int socklen_t; // windows uses int, same size
1718
typedef unsigned short in_port_t;
1819

0 commit comments

Comments
 (0)