bug-gnulib
[Top][All Lists]
Advanced

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

Re: timespec declaration issue on Tru64


From: Bruno Haible
Subject: Re: timespec declaration issue on Tru64
Date: Mon, 15 Dec 2008 02:11:11 +0100
User-agent: KMail/1.9.9

Daniel Richard G. wrote:
> -std puts the compiler into relaxed-ANSI mode, instead of the default, which 
> is K&R. This flag was actually added by autoconf itself---the build failure I 
> quoted was obtained with all *FLAGS variables unset.
> 
> (The only other options here are -std1 [strict ANSI], and -ms [Microsoft 
> Visual C compatible])

OK. It's the "strict" modes that sometimes cause trouble. "Relaxed" mode sounds
fine.

> >   1) to look at the preprocessor output. Here:
> >      $  cc -std -std  -I.    -ieee   -g -E sig2str.c >
> > i
> >      Does this output contain the typedef for 'struct
> > timespec' or not?
> >      If so, does it use the definition from
> > <sys/sysmisc.h> or from gnulib?
> 
> From "egrep '^#|timespec' i" ...
> 
> # 582 "/usr/include/sys/types.h"
> # 35 "/usr/include/sys/sysmisc.h"
> typedef struct timespec {
> } timespec_t;
> # 35 "/usr/include/sys/siginfo.h"

So? What is your conclusion from that?

Bruno




reply via email to

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