This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: c/6126: Tru64 5.1 doesn't expose stat(2) as a function
- From: "Coleman, Michael" <MKC at Stowers-Institute dot org>
- To: "Richard Henderson" <rth at redhat dot com>
- Cc: <rth at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>
- Date: Tue, 2 Apr 2002 17:15:17 -0600
- Subject: RE: c/6126: Tru64 5.1 doesn't expose stat(2) as a function
> From: Richard Henderson [mailto:rth@redhat.com]
> Sent: Tuesday, April 02, 2002 4:09 PM
> > #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 ...
>
> Yes, but we define __EXTERN_PREFIX ourselves in gcc.
> So the question still stands: does it all work?
No. The pragma will not be "executed" because 'stat' is defined (because '__DECC' is not defined). A fixincludes will be required.
Mike