This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix build when size_t is not available in bfd-in2.h
- From: Jon TURNEY <jturney at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 16 Jun 2015 12:42:58 -0000
- Subject: [binutils-gdb] Fix build when size_t is not available in bfd-in2.h
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=56f4083249f4633084d4e8d89fc065e895f874cf
commit 56f4083249f4633084d4e8d89fc065e895f874cf
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Mon Jun 15 19:20:02 2015 +0100
Fix build when size_t is not available in bfd-in2.h
bfd/ChangeLog:
2015-06-15 Jon Turney <jon.turney@dronecode.org.uk>
* bfd.c: Change struct bfd_build_id to use bfd_size_type.
* bfd-in2.h : Regenerate.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/bfd-in2.h | 2 +-
bfd/bfd.c | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 91bdc45..be36403 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-15 Jon Turney <jon.turney@dronecode.org.uk>
+
+ * bfd.c: Change struct bfd_build_id to use bfd_size_type.
+ * bfd-in2.h : Regenerate.
+
2015-06-16 Alan Modra <amodra@gmail.com>
* elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index dfffe3c..2d32c74 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -6328,7 +6328,7 @@ enum bfd_plugin_format
struct bfd_build_id
{
- size_t size;
+ bfd_size_type size;
bfd_byte data[1];
};
diff --git a/bfd/bfd.c b/bfd/bfd.c
index e60f358..8d85de5 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -53,7 +53,7 @@ CODE_FRAGMENT
.
.struct bfd_build_id
. {
-. size_t size;
+. bfd_size_type size;
. bfd_byte data[1];
. };
.