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:
@@ -494,6 +494,11 @@ glob1(Char *pattern, glob_t *pglob)
|
|||||||
* of recursion for each segment in the pattern that contains one or more
|
* of recursion for each segment in the pattern that contains one or more
|
||||||
* meta characters.
|
* meta characters.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT)
|
||||||
|
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
|
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
|
||||||
{
|
{
|
||||||
|
@@ -494,6 +494,11 @@ glob1(Char *pattern, glob_t *pglob)
|
|||||||
* of recursion for each segment in the pattern that contains one or more
|
* of recursion for each segment in the pattern that contains one or more
|
||||||
* meta characters.
|
* meta characters.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(S_ISLNK) && defined(S_IFLNK) && defined(S_IFMT)
|
||||||
|
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
|
glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user