bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-6.0 on BeOS (9)


From: Bruno Haible
Subject: Re: coreutils-6.0 on BeOS (9)
Date: Mon, 28 Aug 2006 17:22:48 +0200
User-agent: KMail/1.9.1

Paul Eggert wrote:
> 2006-08-23  Paul Eggert  <address@hidden>
> 
>       * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define.  This
>       macro was being used without being defined.

Compiling the current coreutils CVS on MacOS X 10.3.9 now gives this error:

stat.c: In function `print_statfs':
stat.c:416: error: incompatible types in initialization


Preprocessed output snippet:

# 416 "stat.c"
        unsigned long long int fsid = statfsbuf->f_fsid;


The reason is that fsid_t is defined like this:

typedef struct fsid { int32_t val[2]; } fsid_t;

The code that tests HAVE_STRUCT_STATXFS_F_FSID___VAL should also have an
alternative that tests HAVE_STRUCT_STATXFS_F_FSID_VAL (and augment stat-prog.m4
accordingly).

Bruno




reply via email to

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