-
Notifications
You must be signed in to change notification settings - Fork 1
/
0002-Add-more-missing-headers-to-ld64.patch
53 lines (46 loc) · 1.33 KB
/
0002-Add-more-missing-headers-to-ld64.patch
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
From 178edac68b85ded9e086cc60fa0f988940511d3b Mon Sep 17 00:00:00 2001
From: [email protected] <[email protected]>
Date: Tue, 14 Apr 2009 18:48:24 +0000
Subject: [PATCH 2/8] Add more missing headers to ld64
Review URL: http://codereview.chromium.org/73039
git-svn-id: http://toolwhip.googlecode.com/svn/trunk@96 e278dae4-13f1-11de-b480-edb48bd02f47
---
src/ld/Options.cpp | 2 ++
src/ld/Options.h | 1 +
src/other/rebase.cpp | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/ld/Options.cpp b/src/ld/Options.cpp
index 3f351f4..d090f3d 100644
--- a/src/ld/Options.cpp
+++ b/src/ld/Options.cpp
@@ -28,6 +28,8 @@
#include <mach/vm_prot.h>
#include <mach-o/dyld.h>
#include <fcntl.h>
+#include <limits.h>
+#include <stdarg.h>
#include <vector>
#include "Options.h"
diff --git a/src/ld/Options.h b/src/ld/Options.h
index 4a06a5e..fe258fa 100644
--- a/src/ld/Options.h
+++ b/src/ld/Options.h
@@ -27,6 +27,7 @@
#include <stdint.h>
+#include <string.h>
#include <mach/machine.h>
#include <vector>
diff --git a/src/other/rebase.cpp b/src/other/rebase.cpp
index 893964c..d81dd0a 100644
--- a/src/other/rebase.cpp
+++ b/src/other/rebase.cpp
@@ -29,6 +29,7 @@
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
--
1.7.1