diff options
| author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2016-02-29 00:01:27 +0000 |
|---|---|---|
| committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2016-02-29 00:01:27 +0000 |
| commit | 6b669322fbd37a43094a02462b231b0cd3eb36a1 (patch) | |
| tree | 438811954fa038372968f18f5a6ca0dfbbd277cb /devel/chrpath/files/patch-protos.h | |
| parent | Stop setting USE_GCC=yes. (diff) | |
Update to 0.16.
This version has quite a number of fixes, but the most important new feature is
that it can handle both 32-bit and 64-bit ELF files now.
PR: 206931
Submitted by: dim
Notes
Notes:
svn path=/head/; revision=409789
Diffstat (limited to 'devel/chrpath/files/patch-protos.h')
| -rw-r--r-- | devel/chrpath/files/patch-protos.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/chrpath/files/patch-protos.h b/devel/chrpath/files/patch-protos.h new file mode 100644 index 000000000000..a5c0810e0ed9 --- /dev/null +++ b/devel/chrpath/files/patch-protos.h @@ -0,0 +1,30 @@ +--- protos.h.orig 2013-11-24 08:30:01.000000000 +0100 ++++ protos.h 2016-02-03 19:47:21.946096000 +0100 +@@ -1,7 +1,14 @@ + #ifndef PROTOS_H + #define PROTOS_H + ++#ifdef __FreeBSD__ ++#include <sys/endian.h> ++#define bswap_16 bswap16 ++#define bswap_32 bswap32 ++#define bswap_64 bswap64 ++#else + #include <byteswap.h> ++#endif + #include <elf.h> + #include "config.h" + +@@ -14,6 +21,12 @@ + #error "Unknown word size (SIZEOF_VOID_P)!" + #endif + ++#ifdef __FreeBSD__ ++#define Elf_Ehdr Elf__Ehdr ++#define Elf_Shdr Elf__Shdr ++#define Elf_Phdr Elf__Phdr ++#endif ++ + typedef union { + unsigned char e_ident[EI_NIDENT]; + Elf32_Ehdr e32; |
