Skip to content

Commit

Permalink
fix(auxiliary/nginx) set off_t to 64bit per nginx config (#32)
Browse files Browse the repository at this point in the history
Fix #16
  • Loading branch information
fffonion authored Sep 28, 2021
1 parent 8bfde1b commit 8c209fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resty/openssl/auxiliary/nginx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ else
local ffi = require "ffi"

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

Expand Down

0 comments on commit 8c209fa

Please sign in to comment.