aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/adaint.c
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@act-europe.fr>2004-10-27 14:28:44 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2004-10-27 14:28:44 +0200
commit7cd6e9f14f058fdac9ca87e19ff9c85907f3625c (patch)
tree4c0a0fe12318fd865a2d1e8b8dc93de0f4d3acf2 /gcc/ada/adaint.c
parentcc35610031fca77a8294a5c0e19dcb7fb8eb9888 (diff)
downloadgcc-7cd6e9f14f058fdac9ca87e19ff9c85907f3625c.zip
gcc-7cd6e9f14f058fdac9ca87e19ff9c85907f3625c.tar.gz
gcc-7cd6e9f14f058fdac9ca87e19ff9c85907f3625c.tar.bz2
expect.c, [...] (unix sections): Guard with "__unix__" instead of "unix".
2004-10-26 Olivier Hainque <hainque@act-europe.fr> Nicolas Setton <setton@act-europe.fr> * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with "__unix__" instead of "unix". The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the sections were just mistakenly ignored. The former is implicitely defined by gcc2.8, gcc3.2 and gcc3.4. Update #ifdef preprocessor macro to detect the symbol __hpux__ instead of hpux. This prevents an unwanted definition of the symbol convert_addresses in adaint.o. From-SVN: r89642
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r--gcc/ada/adaint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 69b25e2..c1b85a0 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -1512,7 +1512,7 @@ __gnat_is_symbolic_link (char *name ATTRIBUTE_UNUSED)
#if defined (__vxworks)
return 0;
-#elif defined (_AIX) || defined (unix)
+#elif defined (_AIX) || defined (__unix__)
int ret;
struct stat statbuf;
@@ -2441,7 +2441,7 @@ _flush_cache()
|| (! (defined (sparc) && defined (sun) && defined (__SVR4)) \
&& ! (defined (linux) && defined (i386)) \
&& ! defined (__FreeBSD__) \
- && ! defined (hpux) \
+ && ! defined (__hpux__) \
&& ! defined (_AIX) \
&& ! (defined (__alpha__) && defined (__osf__)) \
&& ! defined (__MINGW32__) \