Add a fake S_ISSOCK() macro

This commit is contained in:
Johannes Sixt
2007-07-21 23:16:20 +02:00
parent 3b395cf622
commit cef2e26351

View File

@@ -375,6 +375,7 @@ static inline int strtoul_ui(char const *s, int base, unsigned int *result)
#ifndef S_ISLNK
#define S_IFLNK 0120000 /* Symbolic link */
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
#define S_ISSOCK(x) 0
#endif
#ifndef S_ISGRP