diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2012-09-18 09:02:50 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2012-09-18 09:02:50 +0000 |
commit | c0558468b815e60a5d6d1d48e3a966010cb460f2 (patch) | |
tree | 697417aea68dbd77f97dd9fee4a31e632858b55b /libbacktrace | |
parent | ed770de906725cde105e3b70fbfde825f713a689 (diff) | |
download | gcc-c0558468b815e60a5d6d1d48e3a966010cb460f2.zip gcc-c0558468b815e60a5d6d1d48e3a966010cb460f2.tar.gz gcc-c0558468b815e60a5d6d1d48e3a966010cb460f2.tar.bz2 |
Fix libbacktrace bootstrap with gcc 4.4
* fileline.c: Include <stdlib.h>.
* mmap.c: Likewise.
From-SVN: r191414
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 5 | ||||
-rw-r--r-- | libbacktrace/fileline.c | 1 | ||||
-rw-r--r-- | libbacktrace/mmap.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index ec3e1b7..277927b 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * fileline.c: Include <stdlib.h>. + * mmap.c: Likewise. + 2012-09-17 Ian Lance Taylor <iant@google.com> PR bootstrap/54611 diff --git a/libbacktrace/fileline.c b/libbacktrace/fileline.c index de2a589..6aeaf40 100644 --- a/libbacktrace/fileline.c +++ b/libbacktrace/fileline.c @@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE. */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <stdlib.h> #include "backtrace.h" #include "internal.h" diff --git a/libbacktrace/mmap.c b/libbacktrace/mmap.c index e8e9861..e07810d 100644 --- a/libbacktrace/mmap.c +++ b/libbacktrace/mmap.c @@ -34,6 +34,7 @@ POSSIBILITY OF SUCH DAMAGE. */ #include <errno.h> #include <string.h> +#include <stdlib.h> #include <unistd.h> #include <sys/mman.h> |