From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18895 invoked by alias); 23 Jul 2002 04:16:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18851 invoked by uid 71); 23 Jul 2002 04:16:01 -0000 Date: Mon, 22 Jul 2002 21:16:00 -0000 Message-ID: <20020723041601.18850.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Mike Coleman Subject: Re: c/6126: Tru64 5.1 doesn't expose stat(2) as a function Reply-To: Mike Coleman X-SW-Source: 2002-07/txt/msg00627.txt.bz2 List-Id: The following reply was made to PR c/6126; it has been noted by GNATS. From: Mike Coleman To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, mkc@stowers-institute.org Cc: Subject: Re: c/6126: Tru64 5.1 doesn't expose stat(2) as a function Date: Tue, 23 Jul 2002 04:06:19 GMT With rth's addition of the 'extern_prefix' pragma, a simple way to now exists to fix sys/stat.h on Tru64 5.1, which is to just add #define _LIBC_POLLUTION_H_ somewhere early in the file. This will prevent stat and friends from being defined as macros and cause the extern_prefix pragma to be used instead. The define above probably ought to be added after the includes. Here's a snippet from that area. Maybe someone that knows fixincludes could whip up a little pattern. Mike [from sys/stat.h:] #include #include #include #if defined(__cplusplus) extern "C" { #endif http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6126