From 7ba66f42a0cb15ff3cd6a93d6927f68fb8363a13 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 20 Feb 2012 19:14:35 +0000 Subject: 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. --- src/os/unix/ngx_files.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/os/unix') 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 -- cgit v1.2.3