From: Igor Sysoev Date: Thu, 20 Oct 2011 07:12:45 +0000 (+0000) Subject: Fixing conflict with SDK off_t definition. X-Git-Tag: release-1.1.7~18 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=5f810705232f477361de76521287614562c34592;p=nginx.git Fixing conflict with SDK off_t definition. --- diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h index cc4c375eb..8ffe95c31 100644 --- a/src/os/win32/ngx_win32_config.h +++ b/src/os/win32/ngx_win32_config.h @@ -126,8 +126,11 @@ typedef unsigned __int64 uint64_t; typedef int intptr_t; typedef u_int uintptr_t; -typedef int ssize_t; +/* Windows defines off_t as long, which is 32-bit */ typedef __int64 off_t; +#define _OFF_T_DEFINED + +typedef int ssize_t; typedef uint32_t in_addr_t; typedef u_short in_port_t; typedef int sig_atomic_t;