diff options
author | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 18:02:19 +0000 |
---|---|---|
committer | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 18:02:19 +0000 |
commit | 6136c43ee1a776040560b1f5a82debfe6f5615c4 (patch) | |
tree | 788c86b43a21ea2a03751c373d3fca5f03966140 /base | |
parent | 0bf514029e8960ab19594b74f117eade41d80d2f (diff) | |
download | chromium_src-6136c43ee1a776040560b1f5a82debfe6f5615c4.zip chromium_src-6136c43ee1a776040560b1f5a82debfe6f5615c4.tar.gz chromium_src-6136c43ee1a776040560b1f5a82debfe6f5615c4.tar.bz2 |
For systems where SIZEOF_VOID_P is not defined, determine it based
on __LP64__ (which is predefined in gcc on 64-bit systems)
(Necessary for BSD port)
Review URL: http://codereview.chromium.org/747003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/third_party/symbolize/symbolize.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/base/third_party/symbolize/symbolize.h b/base/third_party/symbolize/symbolize.h index 1ebe4dd..c3e41be 100644 --- a/base/third_party/symbolize/symbolize.h +++ b/base/third_party/symbolize/symbolize.h @@ -60,10 +60,24 @@ #ifdef HAVE_SYMBOLIZE -#if defined(__ELF__) // defined by gcc on Linux +#if defined(__ELF__) // defined by gcc +#if defined(__OpenBSD__) +#include <sys/exec_elf.h> +#else #include <elf.h> +#endif #include <link.h> // For ElfW() macro. +// For systems where SIZEOF_VOID_P is not defined, determine it +// based on __LP64__ (defined by gcc on 64-bit systems) +#if !defined(SIZEOF_VOID_P) +# if defined(__LP64__) +# define SIZEOF_VOID_P 8 +# else +# define SIZEOF_VOID_P 4 +# endif +#endif + // If there is no ElfW macro, let's define it by ourself. #ifndef ElfW # if SIZEOF_VOID_P == 4 |