diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2013-02-21 00:50:10 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2013-02-21 00:50:10 +0000 |
| commit | ca38a36b6d729c2881c03c38ecde4397b27c3710 (patch) | |
| tree | ef6ab7ee88805ca16b5388d5e89e9aeddec66e48 /sysutils/prelink/files/patch-src-dwarf2.c | |
| parent | - Update to 1.11 (diff) | |
ELF prelinking utility to speed up dynamic linking.
WWW: http://people.redhat.com/jakub/prelink/
PR: ports/176283
Submitted by: Damjan Jovanovic <damjan.jov@gmail.com>
Notes
Notes:
svn path=/head/; revision=312689
Diffstat (limited to 'sysutils/prelink/files/patch-src-dwarf2.c')
| -rw-r--r-- | sysutils/prelink/files/patch-src-dwarf2.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/prelink/files/patch-src-dwarf2.c b/sysutils/prelink/files/patch-src-dwarf2.c new file mode 100644 index 000000000000..35d90f4d9040 --- /dev/null +++ b/sysutils/prelink/files/patch-src-dwarf2.c @@ -0,0 +1,24 @@ +diff -Nur src/dwarf2.c src/dwarf2.c +--- src/dwarf2.c 2013-02-19 23:54:34.000000000 +0200 ++++ src/dwarf2.c 2013-02-19 23:50:31.000000000 +0200 +@@ -17,8 +17,20 @@ + + #include <config.h> + #include <assert.h> ++ ++#if HAVE_BYTESWAP_H + #include <byteswap.h> ++#elif HAVE_SYS_ENDIAN_H ++#include <sys/endian.h> ++#define bswap_32 bswap32 ++#endif ++ ++#if HAVE_ENDIAN_H + #include <endian.h> ++#elif HAVE_SYS_ENDIAN_H ++#include <sys/endian.h> ++#endif ++ + #include <errno.h> + #include <error.h> + #include <limits.h> |
