forked from cstrahan/cgosymbolizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.patch
85 lines (79 loc) · 2.67 KB
/
build.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff --git a/internal/libbacktrace/atomic.c b/internal/libbacktrace/atomic.c
index cb0ad02..7436e27 100644
--- a/internal/libbacktrace/atomic.c
+++ b/internal/libbacktrace/atomic.c
@@ -35,7 +35,6 @@ POSSIBILITY OF SUCH DAMAGE. */
#include <sys/types.h>
#include "backtrace.h"
-#include "backtrace-supported.h"
#include "internal.h"
/* This file holds implementations of the atomic functions that are
diff --git a/internal/libbacktrace/backtrace.h b/internal/libbacktrace/backtrace.h
index d209219..70aa4fb 100644
--- a/internal/libbacktrace/backtrace.h
+++ b/internal/libbacktrace/backtrace.h
@@ -34,25 +34,8 @@ POSSIBILITY OF SUCH DAMAGE. */
#define BACKTRACE_H
#include <stddef.h>
-#include <stdio.h>
-
-/* We want to get a definition for uintptr_t, but we still care about
- systems that don't have <stdint.h>. */
-#if defined(__GLIBC__) && __GLIBC__ >= 2
-
-#include <stdint.h>
-
-#elif defined(HAVE_STDINT_H)
-
#include <stdint.h>
-
-#else
-
-/* Systems that don't have <stdint.h> must provide gstdint.h, e.g.,
- from GCC_HEADER_STDINT in configure.ac. */
-#include "gstdint.h"
-
-#endif
+#include <stdio.h>
#ifdef __cplusplus
extern "C" {
diff --git a/internal/libbacktrace/elf.c b/internal/libbacktrace/elf.c
index 81ba344..96640b8 100644
--- a/internal/libbacktrace/elf.c
+++ b/internal/libbacktrace/elf.c
@@ -1,3 +1,5 @@
+// +build !windows,!darwin
+
/* elf.c -- Get debug data from an ELF file for backtraces.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
diff --git a/internal/libbacktrace/pecoff.c b/internal/libbacktrace/pecoff.c
index c7d32aa..f809b68 100644
--- a/internal/libbacktrace/pecoff.c
+++ b/internal/libbacktrace/pecoff.c
@@ -1,3 +1,5 @@
+// +build windows
+
/* pecoff.c -- Get debug data from a PE/COFFF file for backtraces.
Copyright (C) 2015-2016 Free Software Foundation, Inc.
Adapted from elf.c by Tristan Gingold, AdaCore.
diff --git a/internal/libbacktrace/state.c b/internal/libbacktrace/state.c
index 93420d9..f731017 100644
--- a/internal/libbacktrace/state.c
+++ b/internal/libbacktrace/state.c
@@ -36,7 +36,6 @@ POSSIBILITY OF SUCH DAMAGE. */
#include <sys/types.h>
#include "backtrace.h"
-#include "backtrace-supported.h"
#include "internal.h"
/* Create the backtrace state. This will then be passed to all the
diff --git a/internal/libbacktrace/unknown.c b/internal/libbacktrace/unknown.c
index 8d06c31..a28062b 100644
--- a/internal/libbacktrace/unknown.c
+++ b/internal/libbacktrace/unknown.c
@@ -1,3 +1,5 @@
+// +build darwin
+
/* unknown.c -- used when backtrace configury does not know file format.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.