diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-02-20 19:14:35 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-02-20 19:14:35 +0000 |
commit | 7ba66f42a0cb15ff3cd6a93d6927f68fb8363a13 (patch) | |
tree | 40312db1a44609ba597666150553ed613ee57633 /src/os | |
parent | 6bb86e3d5852e0d879c2e1f18dc1627172050606 (diff) | |
download | nginx-7ba66f42a0cb15ff3cd6a93d6927f68fb8363a13.tar.gz nginx-7ba66f42a0cb15ff3cd6a93d6927f68fb8363a13.zip |
Disable symlinks: added explicit cast of AT_FDCWD (ticket #111).
Solaris has AT_FDCWD defined to unsigned value, and comparison of a file
descriptor with it causes warnings in modern versions of gcc. Explicitly
cast AT_FDCWD to ngx_fd_t to resolve these warnings.
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_files.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 1526f9b77..d397c2fbd 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -340,6 +340,8 @@ size_t ngx_fs_bsize(u_char *name); #define ngx_file_at_info_n "fstatat()" +#define NGX_AT_FDCWD (ngx_fd_t) AT_FDCWD + #endif |