opnsense-ports/sysutils/prelink/files/patch-src-dwarf2.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

24 lines
498 B
C

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>