Re: sys/stat.h and nlink

2009-01-14 Thread Bruno Haible
Simon Josefsson wrote: > I see two solutions. I pushed 2). Thanks. This was the right choice, because POSIX [1] specifies "The header shall define the ... nlink_t, ... types as described in ." Bruno [1] http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html

Re: sys/stat.h and nlink

2009-01-14 Thread Jim Meyering
Simon Josefsson wrote: > The test-sys_stat self-test fails on debian etch x86, see: > > http://autobuild.josefsson.org/gnulib/log-200901140954236318000.txt > > The problem is that sys/stat.h does not define nlink_t (at least not > unconditionally), however sys/types.h does: > > gnu...@mejsel:~$ ca

sys/stat.h and nlink

2009-01-14 Thread Simon Josefsson
The test-sys_stat self-test fails on debian etch x86, see: http://autobuild.josefsson.org/gnulib/log-200901140954236318000.txt The problem is that sys/stat.h does not define nlink_t (at least not unconditionally), however sys/types.h does: gnu...@mejsel:~$ cat>foo.c #include int main (void) { n