From e17161443a576e27a595d4336a28ebab9926abb7 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Fri, 19 Apr 2002 05:48:22 +0000 Subject: [PATCH] Avoid defining/using S_ISDIR macro. --- main/php_ini.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main/php_ini.c b/main/php_ini.c index 8e77345607..623d21d8b4 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -31,10 +31,6 @@ #include "SAPI.h" #include "php_main.h" -#ifndef S_ISDIR -#define S_ISDIR( m ) (((m) & S_IFMT) == S_IFDIR) -#endif - typedef struct _php_extension_lists { zend_llist engine; zend_llist functions; @@ -272,7 +268,7 @@ int php_init_config(char *php_ini_path_override) if (php_ini_path_override && php_ini_path_override[0]) { struct stat statbuf; if (!VCWD_STAT(php_ini_path_override, &statbuf)) { - if (!S_ISDIR(statbuf.st_mode)) { + if (!((statbuf.st_mode & S_IFMT) == S_IFDIR)) { fh.handle.fp = VCWD_FOPEN(php_ini_path_override, "r"); } } -- 2.40.0