From 5012447497dfcdcb78571b4cf897c064de6f91fe Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 13 Feb 1995 09:04:18 -0500 Subject: [PATCH] (CPP_SPEC): Define _POSIX_SOURCE if -posix. From-SVN: r8925 --- gcc/config/rs6000/powerpc.h | 3 ++- gcc/config/rs6000/rs6000.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/powerpc.h b/gcc/config/rs6000/powerpc.h index 207cde3f4d1..3f5196667bf 100644 --- a/gcc/config/rs6000/powerpc.h +++ b/gcc/config/rs6000/powerpc.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler, for IBM RS/6000 PowerPC running AIX version 3.2. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. Contributed by David Edelsohn (edelsohn@npac.syr.edu). This file is part of GNU CC. @@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_SPEC #define CPP_SPEC "\ +%{posix: -D_POSIX_SOURCE} \ %{!mcpu*: \ %{mpower: %{!mpower2: -D_ARCH_PWR}} \ %{mpower2: -D_ARCH_PWR2} \ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 40a852884dc..8daf16899aa 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -45,6 +45,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ target switches. */ #define CPP_SPEC "\ +%{posix: -D_POSIX_SOURCE} \ %{!mcpu*: \ %{mpower: %{!mpower2: -D_ARCH_PWR}} \ %{mpower2: -D_ARCH_PWR2} \ -- 2.30.2