diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-12-19 17:49:51 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-19 17:49:51 +0000 |
commit | fcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423 (patch) | |
tree | dacad98fe50e1c152e114dc198fbc0490b69aef0 /src/os | |
parent | 8809257531cc21aab3a25bb487e9424175cdfddd (diff) | |
download | nginx-fcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423.tar.gz nginx-fcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423.zip |
nginx-0.0.1-2002-12-19-20:49:51 import
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_files.c | 1 | ||||
-rw-r--r-- | src/os/unix/ngx_types.h | 15 | ||||
-rw-r--r-- | src/os/win32/ngx_types.h | 1 |
3 files changed, 15 insertions, 2 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 5058bac34..7a5caa507 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -1,4 +1,5 @@ +#include <ngx_config.h> #include <ngx_core.h> #include <ngx_file.h> diff --git a/src/os/unix/ngx_types.h b/src/os/unix/ngx_types.h index ba00950b0..9919e90c4 100644 --- a/src/os/unix/ngx_types.h +++ b/src/os/unix/ngx_types.h @@ -5,8 +5,19 @@ #include <ngx_config.h> -#define QD_FMT "%qd" -#define QX_FMT "%qx" +#ifdef SOLARIS + +#define QD_FMT "%lld" +#define QX_FMT "%llx" +#define OFF_FMT "%lld" + +#else + +#define QD_FMT "%qd" +#define QX_FMT "%qx" +#define OFF_FMT "%qd" + +#endif #endif /* _NGX_TYPES_H_INCLUDED_ */ diff --git a/src/os/win32/ngx_types.h b/src/os/win32/ngx_types.h index 7521633fe..0b513830c 100644 --- a/src/os/win32/ngx_types.h +++ b/src/os/win32/ngx_types.h @@ -11,6 +11,7 @@ typedef long time_t; #define QD_FMT "%I64d" #define QX_FMT "%I64x" +#define OFF_FMT "%I64d" #endif /* _NGX_TYPES_H_INCLUDED_ */ |