Skip to content

Commit f0f3cb6

Browse files
committed
Merge branch 'master' of git.php.net:php-src
2 parents 3428302 + 837cce3 commit f0f3cb6

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

Zend/zend_virtual_cwd.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
342342
#endif
343343

344344
#ifndef S_IFLNK
345-
# define S_IFLNK 0120000
345+
#define _IFLNK 0120000 /* symbolic link */
346+
#define S_IFLNK _IFLNK
346347
#endif
347348

348349
#ifndef S_ISDIR
@@ -361,4 +362,15 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
361362
#define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH )
362363
#endif
363364

365+
/* XXX should be _S_IFIFO? */
366+
#ifndef S_IFIFO
367+
#define _IFIFO 0010000 /* fifo */
368+
#define S_IFIFO _IFIFO
369+
#endif
370+
371+
#ifndef S_IFBLK
372+
#define _IFBLK 0060000 /* block special */
373+
#define S_IFBLK _IFBLK
374+
#endif
375+
364376
#endif /* VIRTUAL_CWD_H */

main/win95nt.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ typedef int uid_t;
3434
typedef int gid_t;
3535
typedef char * caddr_t;
3636
#define lstat(x, y) php_sys_lstat(x, y)
37-
#define _IFIFO 0010000 /* fifo */
38-
#define _IFBLK 0060000 /* block special */
39-
#define _IFLNK 0120000 /* symbolic link */
40-
#define S_IFIFO _IFIFO
41-
#define S_IFBLK _IFBLK
42-
#ifndef S_IFLNK
43-
# define S_IFLNK _IFLNK
44-
#endif
4537
#define chdir(path) _chdir(path)
4638
#define mkdir(a, b) _mkdir(a)
4739
#define rmdir(a) _rmdir(a)

0 commit comments

Comments
 (0)