bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fts: expose dirent.d_type data when possible


From: Simon Josefsson
Subject: Re: fts: expose dirent.d_type data when possible
Date: Mon, 08 Dec 2008 09:56:12 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

Jim Meyering <address@hidden> writes:

> +    case DT_LNK:
> +      type = S_IFLNK;
> +      break;
...
> +    case DT_SOCK:
> +      type = S_IFSOCK;
> +      break;

This patch causes mingw failures:

fts.c: In function 'set_stat_type':
fts.c:1035: error: 'S_IFLNK' undeclared (first use in this function)
fts.c:1035: error: (Each undeclared identifier is reported only once
fts.c:1035: error: for each function it appears in.)
fts.c:1041: error: 'S_IFSOCK' undeclared (first use in this function)

Given that S_IFLNK and S_IFSOCK are POSIX constants, possibly sys/stat.h
should define them.  But is it possible to do this in any useful way?
Which values should be used?

/Simon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]