]> git.kaiwu.me - nginx.git/commitdiff
Fixing conflict with SDK off_t definition.
authorIgor Sysoev <igor@sysoev.ru>
Thu, 20 Oct 2011 07:12:45 +0000 (07:12 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 20 Oct 2011 07:12:45 +0000 (07:12 +0000)
src/os/win32/ngx_win32_config.h

index cc4c375ebe925501df9168b601146a937ef4bf06..8ffe95c3128f5c3f84e209bb132ffb0d5e81918e 100644 (file)
@@ -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;