From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1789 invoked by alias); 7 Oct 2004 19:11:24 -0000 Mailing-List: contact rda-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rda-owner@sources.redhat.com Received: (qmail 1770 invoked from network); 7 Oct 2004 19:11:21 -0000 To: Kevin Buettner Cc: rda@sources.redhat.com Subject: Re: RFA: #define _GNU_SOURCE to get strsignal prototoype References: <20041007091109.7177ed53@saguaro> From: Jim Blandy Date: Thu, 07 Oct 2004 19:11:00 -0000 In-Reply-To: <20041007091109.7177ed53@saguaro> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-q4/txt/msg00006.txt.bz2 Kevin Buettner writes: > On 07 Oct 2004 11:08:01 -0500 > Jim Blandy wrote: > > > This removes some compilation warnings on older Red Hat systems. > > #defining _GNU_SOURCE is the documented way to get these declarations > > from GNU C Library header files. From "(libc) Feature Test Macros": > > > > You should define these macros by using `#define' preprocessor > > directives at the top of your source code files. These directives > > _must_ come before any `#include' of a system header file. It is best > > to make them the very first thing in the file, preceded only by > > comments. You could also use the `-D' option to GCC, but it's better > > if you make the source files indicate their own meaning in a > > self-contained way. > > > > ... > > > > - Macro: _GNU_SOURCE > > If you define this macro, everything is included: ISO C89, > > ISO C99, POSIX.1, POSIX.2, BSD, SVID, X/Open, LFS, and GNU > > extensions. In the cases where POSIX.1 conflicts with BSD, the > > POSIX definitions take precedence. > > > > 2004-09-24 Jim Blandy > > > > * samples/async.c: #define _GNU_SOURCE before #including any > > files, to get prototypes for GNU-specific functions like > > strsignal. > > Okay. Committed, thanks.