From 83b5a2fb0c77b3d508c82c8838d080e120a01159 Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 3 Apr 2001 10:51:16 +0000 Subject: [PATCH] SCO (and maybe others) do not have this defined. --- ext/standard/filestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 621e49bfcd..95ef0bcf17 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -551,7 +551,7 @@ static void php_stat(const char *filename, int type, pval *return_value) case S_IFDIR: RETURN_STRING("dir",1); case S_IFBLK: RETURN_STRING("block",1); case S_IFREG: RETURN_STRING("file",1); -#if !defined(ZEND_WIN32)&&!defined(__BEOS__) +#if defined(S_IFSOCK) && !defined(ZEND_WIN32)&&!defined(__BEOS__) case S_IFSOCK: RETURN_STRING("socket",1); #endif } -- 2.40.0