c/6126: Tru64 5.1 doesn't expose stat(2) as a function
Coleman, Michael
MKC@Stowers-Institute.org
Tue Apr 2 14:06:00 GMT 2002
> -----Original Message-----
> From: rth@gcc.gnu.org [mailto:rth@gcc.gnu.org]
> Sent: Monday, April 01, 2002 7:36 PM
> Synopsis: Tru64 5.1 doesn't expose stat(2) as a function
> Should be fixed in gcc 3.1 prereleases. I implemented the
> pragma on 2002-03-22. Please verify that no additional
> fixincludes hackery is required.
This almost works, but not quite. The structure of stat.h is something like this
#if defined(__DECC)
#define __EXTERN_PREFIX
#else
#if !defined(stat)
define stat(...) ...
#endif
#endif
#if !defined(stat) && defined(__EXTERN_PREFIX)
#pragma extern_prefix "_F64_"
#endif
extern int stat ...
I'm not sure exactly what the strategy is for fixincludes, but it looks like defining __DECC for this one file would be a benign fix. There are many other ways it could be fixed as well.
Mike
More information about the Gcc-bugs
mailing list