comparison src/buffer.c @ 14509:80f715651c4c v8.1.0268

patch 8.1.0268: file type checking has too many #ifdef commit https://github.com/vim/vim/commit/d569bb029983cff947dce704e6f830276204c13f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 11 13:57:20 2018 +0200 patch 8.1.0268: file type checking has too many #ifdef Problem: File type checking has too many #ifdef. Solution: Always define the S_IF macros. (Ken Takata, closes https://github.com/vim/vim/issues/3306)
author Christian Brabandt <cb@256bit.org>
date Sat, 11 Aug 2018 14:00:05 +0200
parents 3375a8cbb442
children c8f07e8b273e
comparison
equal deleted inserted replaced
14508:7336a81d18c4 14509:80f715651c4c
202 202
203 netbeansFireChanges = 0; 203 netbeansFireChanges = 0;
204 #endif 204 #endif
205 #ifdef UNIX 205 #ifdef UNIX
206 perm = mch_getperm(curbuf->b_ffname); 206 perm = mch_getperm(curbuf->b_ffname);
207 if (perm >= 0 && (0 207 if (perm >= 0 && (S_ISFIFO(perm)
208 # ifdef S_ISFIFO
209 || S_ISFIFO(perm)
210 # endif
211 # ifdef S_ISSOCK
212 || S_ISSOCK(perm) 208 || S_ISSOCK(perm)
213 # endif
214 # ifdef OPEN_CHR_FILES 209 # ifdef OPEN_CHR_FILES
215 || (S_ISCHR(perm) && is_dev_fd_file(curbuf->b_ffname)) 210 || (S_ISCHR(perm) && is_dev_fd_file(curbuf->b_ffname))
216 # endif 211 # endif
217 )) 212 ))
218 read_fifo = TRUE; 213 read_fifo = TRUE;