--- binutils-2.19.1.orig/binutils/objcopy.c Wed Aug 6 00:42:17 2008 +++ binutils-2.19.1-dietlibc/binutils/objcopy.c Sat Sep 12 14:03:16 2009 @@ -32,6 +32,7 @@ #include "elf-bfd.h" #include #include "libbfd.h" +#include struct is_specified_symbol_predicate_data { --- binutils-2.19.1.orig/gas/atof-generic.c Tue Jul 3 11:01:02 2007 +++ binutils-2.19.1-dietlibc/gas/atof-generic.c Sat Sep 12 14:03:54 2009 @@ -21,6 +21,7 @@ #include "as.h" #include "safe-ctype.h" +#include #ifndef FALSE #define FALSE (0) --- binutils-2.19.1.orig/gas/cond.c Tue Jul 3 11:01:02 2007 +++ binutils-2.19.1-dietlibc/gas/cond.c Sat Sep 12 14:04:34 2009 @@ -24,6 +24,7 @@ #include "macro.h" #include "obstack.h" +#include /* This is allocated to grow and shrink as .ifdef/.endif pairs are scanned. */ --- binutils-2.19.1.orig/gas/config/tc-i386.c Thu Oct 16 12:52:15 2008 +++ binutils-2.19.1-dietlibc/gas/config/tc-i386.c Sat Sep 12 14:05:58 2009 @@ -34,6 +34,7 @@ #include "dw2gencfi.h" #include "elf/x86-64.h" #include "opcodes/i386-init.h" +#include #ifndef REGISTER_WARNINGS #define REGISTER_WARNINGS 1 --- binutils-2.19.1.orig/gas/expr.c Fri Oct 19 17:31:24 2007 +++ binutils-2.19.1-dietlibc/gas/expr.c Sat Sep 12 14:04:53 2009 @@ -30,6 +30,7 @@ #include "as.h" #include "safe-ctype.h" #include "obstack.h" +#include static void floating_constant (expressionS * expressionP); static valueT generic_bignum_to_int32 (void); --- binutils-2.19.1.orig/gas/macro.c Tue Aug 12 23:39:30 2008 +++ binutils-2.19.1-dietlibc/gas/macro.c Sat Sep 12 14:05:14 2009 @@ -26,6 +26,7 @@ #include "safe-ctype.h" #include "sb.h" #include "macro.h" +#include /* The routines in this file handle macro definition and expansion. They are called by gas. */ --- binutils-2.19.1.orig/gas/read.c Thu Mar 13 10:51:33 2008 +++ binutils-2.19.1-dietlibc/gas/read.c Sat Sep 12 14:05:34 2009 @@ -40,6 +40,7 @@ #include "obstack.h" #include "ecoff.h" #include "dw2gencfi.h" +#include #ifndef TC_START_LABEL #define TC_START_LABEL(x,y) (x == ':') --- binutils-2.19.1.orig/gprof/tahoe.c Tue Apr 10 07:57:31 2007 +++ binutils-2.19.1-dietlibc/gprof/tahoe.c Sat Sep 12 14:06:45 2009 @@ -42,6 +42,7 @@ /* * register for pc relative addressing */ +#undef PC #define PC 0xf enum tahoe_opermodes --- binutils-2.19.1.orig/gprof/vax.c Tue Apr 10 07:57:31 2007 +++ binutils-2.19.1-dietlibc/gprof/vax.c Sat Sep 12 14:06:29 2009 @@ -42,6 +42,7 @@ /* * register for pc relative addressing */ +#undef PC #define PC 0xf enum opermodes --- binutils-2.19.1.orig/ld/ldlang.c Sun Sep 7 04:02:30 2008 +++ binutils-2.19.1-dietlibc/ld/ldlang.c Sat Sep 12 14:07:13 2009 @@ -42,6 +42,7 @@ #include "fnmatch.h" #include "demangle.h" #include "hashtab.h" +#include #ifndef offsetof #define offsetof(TYPE, MEMBER) ((size_t) & (((TYPE*) 0)->MEMBER)) --- binutils-2.19.1.orig/ld/ldmain.c Sun Aug 17 03:12:50 2008 +++ binutils-2.19.1-dietlibc/ld/ldmain.c Sat Sep 12 14:07:34 2009 @@ -40,6 +40,7 @@ #include "ldfile.h" #include "ldemul.h" #include "ldctor.h" +#include /* Somewhere above, sys/stat.h got included. */ #if !defined(S_ISDIR) && defined(S_IFDIR)