Include definition of S_ISLNK() for systems that lack.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@610 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-07-25 22:48:07 +00:00
parent fd6f2a1aa0
commit f18b6e207b
2 changed files with 10 additions and 0 deletions

View File

@@ -494,6 +494,11 @@ glob1(Char *pattern, glob_t *pglob)
* of recursion for each segment in the pattern that contains one or more
* meta characters.
*/
#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT)
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
#endif
static int
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
{

View File

@@ -494,6 +494,11 @@ glob1(Char *pattern, glob_t *pglob)
* of recursion for each segment in the pattern that contains one or more
* meta characters.
*/
#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT)
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
#endif
static int
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
{