summaryrefslogtreecommitdiff
blob: 17c7c890078371f114ca39bd413e15dc9a0c8b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/src/common/util/gen_x_list.c b/src/common/util/gen_x_list.c
index 9dab060..14e6145 100644
--- a/src/common/util/gen_x_list.c
+++ b/src/common/util/gen_x_list.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "string_case.h"
 
diff --git a/src/common/util/gen_x_prop.c b/src/common/util/gen_x_prop.c
index d4b52b5..c532515 100644
--- a/src/common/util/gen_x_prop.c
+++ b/src/common/util/gen_x_prop.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#include <string.h>
 #include "string_case.h"
 
 int main(int argc, char * argv[])
diff --git a/src/ipa_link/bfd/elfxx-mips.c b/src/ipa_link/bfd/elfxx-mips.c
index 5483cf2..388be40 100644
--- a/src/ipa_link/bfd/elfxx-mips.c
+++ b/src/ipa_link/bfd/elfxx-mips.c
@@ -26,7 +26,7 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 /* This file handles functionality common to the different MIPS ABI's.  */
-
+#include <time.h>
 #include "bfd.h"
 #include "sysdep.h"
 #include "libbfd.h"
diff --git a/src/ipa_link/bfd/peigen.c b/src/ipa_link/bfd/peigen.c
index 53dad24..19a47c5 100644
--- a/src/ipa_link/bfd/peigen.c
+++ b/src/ipa_link/bfd/peigen.c
@@ -56,6 +56,7 @@
    depending on whether we're compiling for straight PE or PE+.  */
 #define COFF_WITH_pe
 
+#include <time.h>
 #include "bfd.h"
 #include "sysdep.h"
 #include "libbfd.h"
diff --git a/src/ipa_link/ld/ldmain.c b/src/ipa_link/ld/ldmain.c
index 9bec0e7..b778bca 100644
--- a/src/ipa_link/ld/ldmain.c
+++ b/src/ipa_link/ld/ldmain.c
@@ -160,6 +160,8 @@ static bfd_boolean notice
 #ifdef IPA_LINK
 bfd_boolean is_ipa = FALSE;
 
+extern void cleanup_symtab_for_ipa(void);
+
     /* I have to call this through ld because otherwise
        ipa_ld.o will get pulled in whether it is wanted
        or not. */