Brad Bishop | 0a92126 | 2019-09-24 07:40:45 -0400 | [diff] [blame^] | 1 | From 73c6374ceb0c062e91210cc9ef3e0e9fa30ee514 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 2 Sep 2017 12:42:30 -0700 |
Brad Bishop | 0a92126 | 2019-09-24 07:40:45 -0400 | [diff] [blame^] | 4 | Subject: [PATCH 04/10] Add a definition for the macro __ELF_NATIVE_CLASS |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | |
| 6 | It depends on the native arch's word size. |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | src/mongo/util/stacktrace_posix.cpp | 9 +++++++++ |
| 11 | 1 file changed, 9 insertions(+) |
| 12 | |
| 13 | diff --git a/src/mongo/util/stacktrace_posix.cpp b/src/mongo/util/stacktrace_posix.cpp |
Brad Bishop | 0a92126 | 2019-09-24 07:40:45 -0400 | [diff] [blame^] | 14 | index 1d7b3d7..f81e329 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | --- a/src/mongo/util/stacktrace_posix.cpp |
| 16 | +++ b/src/mongo/util/stacktrace_posix.cpp |
Brad Bishop | 0a92126 | 2019-09-24 07:40:45 -0400 | [diff] [blame^] | 17 | @@ -39,6 +39,15 @@ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | #include <string> |
| 19 | #include <sys/utsname.h> |
| 20 | |
| 21 | +#if !defined(__GLIBC__) |
| 22 | +#if defined __x86_64__ && !defined __ILP32__ |
| 23 | +# define __WORDSIZE 64 |
| 24 | +#else |
| 25 | +# define __WORDSIZE 32 |
| 26 | +#endif |
| 27 | +#define __ELF_NATIVE_CLASS __WORDSIZE |
| 28 | +#endif |
| 29 | + |
| 30 | #include "mongo/base/init.h" |
| 31 | #include "mongo/config.h" |
| 32 | #include "mongo/db/jsobj.h" |
| 33 | -- |
Brad Bishop | 0a92126 | 2019-09-24 07:40:45 -0400 | [diff] [blame^] | 34 | 2.7.4 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | |