[nginx] Win32: fixed building with newer versions of MinGW GCC.

Maxim Dounin mdounin at mdounin.ru
Sat Dec 24 16:25:41 UTC 2016


details:   http://hg.nginx.org/nginx/rev/28a8497bf39c
branches:  
changeset: 6856:28a8497bf39c
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Sat Dec 24 18:01:14 2016 +0300
description:
Win32: fixed building with newer versions of MinGW GCC.

Macro to indicate that off_t was defined has been changed, so we now
additionally define the new one.

diffstat:

 src/os/win32/ngx_win32_config.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -51,6 +51,7 @@
 
 /* GCC MinGW's stdio.h includes sys/types.h */
 #define _OFF_T_
+#define __have_typedef_off_t
 
 #endif
 


More information about the nginx-devel mailing list