Skip to content

Commit cf50748

Browse files
committed
move S_IFLNK define into header
1 parent c444c41 commit cf50748

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Zend/zend_virtual_cwd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
# endif
5555
#endif
5656

57-
#ifndef S_IFLNK
58-
# define S_IFLNK 0120000
59-
#endif
60-
6157
#ifdef NETWARE
6258
#include <fsio.h>
6359
#endif

Zend/zend_virtual_cwd.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
346346
#define _S_IFREG S_IFREG
347347
#endif
348348

349+
#ifndef S_IFLNK
350+
# define S_IFLNK 0120000
351+
#endif
352+
349353
#ifndef S_ISDIR
350354
#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
351355
#endif

0 commit comments

Comments
 (0)