OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2007-07-14 Krister Walfridsson <cato@df.lth.se>
[pf3gnuchains/gcc-fork.git]
/
libjava
/
gnu
/
gcj
/
util
/
natGCInfo.cc
diff --git
a/libjava/gnu/gcj/util/natGCInfo.cc
b/libjava/gnu/gcj/util/natGCInfo.cc
index
8fe049a
..
a924096
100644
(file)
--- a/
libjava/gnu/gcj/util/natGCInfo.cc
+++ b/
libjava/gnu/gcj/util/natGCInfo.cc
@@
-245,8
+245,12
@@
GC_enumerator::print_address_map()
fm = fopen("/proc/self/maps", "r");
if (fm == NULL)
{
+#ifdef HAVE_STRERROR_R
if (0 == strerror_r (errno, buffer, sizeof buffer))
fputs (buffer, fp);
+#else
+ fputs (strerror (errno), fp);
+#endif
}
else
{