On SuSE Linux 6.3 compilation fails:

gcc -DHAVE_CONFIG_H 
-DLIBDIR=\"/nfs/visu/telecom/users/haible/gnu/arch/linuxlibc6/lib\" -I. -I../../lib 
-I..  -I.. -I../../lib -I/nfs/visu/telecom/users/haible/gnu/arch/linuxlibc6/include  
-g -O2 -c `test -f '../../lib/utime.c' || echo '../../lib/'`../../lib/utime.c
../../lib/utime.c: In function `utime_null':
../../lib/utime.c:56: storage size of `sb' isn't known
../../lib/utime.c:58: `O_RDWR' undeclared (first use in this function)
../../lib/utime.c:58: (Each undeclared identifier is reported only once
../../lib/utime.c:58: for each function it appears in.)
../../lib/utime.c:62: `SEEK_SET' undeclared (first use in this function)
../../lib/utime.c:68: `st' undeclared (first use in this function)
make[3]: *** [utime.o] Error 1

Adding a

#include <sys/stat.h>
#include <fcntl.h>

right after

#include <sys/types.h>

and s/st\./sb./ in the code below fixes it.

Bruno



_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to