diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2014-07-03 00:58:04 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-07-03 01:47:06 -0500 |
| commit | 38a5b53f55fbccced9b6f4bc0134dcbfe5fe39d0 (patch) | |
| tree | 9762f40846b6b1a45661d37c86fe1d0913c40e35 /src/build/linker | |
| parent | ce5d000adc777eab31a578cf33dcaf97aa108517 (diff) | |
| download | talos-hostboot-38a5b53f55fbccced9b6f4bc0134dcbfe5fe39d0.tar.gz talos-hostboot-38a5b53f55fbccced9b6f4bc0134dcbfe5fe39d0.zip | |
Fix compile for endian calls on old host GCC
Change-Id: I27e18a424ba4bad7dbd33cd17a5c23c65269f51a
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11958
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/linker')
| -rw-r--r-- | src/build/linker/gensyms.C | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/build/linker/gensyms.C b/src/build/linker/gensyms.C index 5c4a3d608..acd1f8d3e 100644 --- a/src/build/linker/gensyms.C +++ b/src/build/linker/gensyms.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -34,6 +36,16 @@ #include <fcntl.h> #include <sys/mman.h> +#ifndef be64toh + #include <byteswap.h> + #if __BYTE_ORDER == __LITTLE_ENDIAN + #define be64toh(x) __bswap_64(x) + #else + #define be64toh(x) (x) + #endif +#endif + + using namespace std; /** Print tool usage */ |

