diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-08-26 12:08:09 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-08-27 08:28:24 +0200 |
commit | 421f8526637845da72bc7f044303e7d72b80f0c6 (patch) | |
tree | 7ba5d1475bb6b99aef0a756f5a4fffa664a17bc5 | |
parent | 5abe62409c12c2c795bf720c58942dbdc810f2c6 (diff) | |
download | libr-421f8526637845da72bc7f044303e7d72b80f0c6.tar.gz libr-421f8526637845da72bc7f044303e7d72b80f0c6.zip |
to verify the conformity of architecture.
This resolves FTBFS with binutils >= 2.39 on amd64.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7671e683909a3d8dbabab6584f7bcddc983b6831)
-rw-r--r-- | src/libr-bfd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libr-bfd.h b/src/libr-bfd.h index 7b6ea3e..9fae8f5 100644 --- a/src/libr-bfd.h +++ b/src/libr-bfd.h @@ -7,11 +7,12 @@ #include <stdint.h> #include <bfd.h> -#if BFD_HOST_64BIT_LONG +#if (__WORDSIZE == 64) #if defined(__i386) #error "Using incorrect binutils header file for architecture." #endif -#else +#endif +#if (__WORDSIZE == 32) #if defined(__amd64) #error "Using incorrect binutils header file for architecture." #endif |