From bf14b000e6cae87ff2bbd2ab813195fdd2e4b69f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 23 Apr 2009 16:38:59 +0000 Subject: ngx_path_separator() --- src/os/unix/ngx_files.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/os/unix/ngx_files.h') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 63d080b5c..7d83b04e7 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -160,6 +160,8 @@ ngx_int_t ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s); #define ngx_realpath_n "realpath()" #define ngx_getcwd(buf, size) (getcwd(buf, size) != NULL) #define ngx_getcwd_n "getcwd()" +#define ngx_path_separator(c) ((c) == '/') + #define NGX_MAX_PATH PATH_MAX #define NGX_DIR_MASK_LEN 0 -- cgit v1.2.3