summaryrefslogtreecommitdiff
path: root/devel/firmware-utils/files/patch-freebsd.h
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2011-12-25 05:10:28 +0000
committerEitan Adler <eadler@FreeBSD.org>2011-12-25 05:10:28 +0000
commit5a3245071840593218b88de24755cc68d23a8612 (patch)
tree6d19504dad3a9c8d27b8ec862e0457911fcdc99e /devel/firmware-utils/files/patch-freebsd.h
parent. Update to tzupdater 1.3.45 (diff)
A collection of utilities to create firmware images for embedded devices,
including many wireless routers from many vendors. The utilities are collected and maintained by the OpenWrt router project. WWW: http://www.openwrt.org/ PR: ports/163537 Submitted by: Stefan Bethke <stb@lassitu.de> Feature safe: yes
Diffstat (limited to 'devel/firmware-utils/files/patch-freebsd.h')
-rw-r--r--devel/firmware-utils/files/patch-freebsd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/firmware-utils/files/patch-freebsd.h b/devel/firmware-utils/files/patch-freebsd.h
new file mode 100644
index 000000000000..c3bd2af7b5fe
--- /dev/null
+++ b/devel/firmware-utils/files/patch-freebsd.h
@@ -0,0 +1,12 @@
+--- /dev/null 2011-12-22 15:12:10.000000000 +0100
++++ freebsd.h 2011-12-22 15:09:36.970404879 +0100
+@@ -0,0 +1,9 @@
++/*
++ *
++ */
++
++#define bswap_8(x) ((x) & 0xff)
++#define bswap_16(x) ((bswap_8(x) << 8) | bswap_8((x) >> 8))
++#define bswap_32(x) ((bswap_16(x) << 16) | bswap_16((x) >> 16))
++#define bswap_64(x) ((bswap_32(x) << 32) | bswap_32((x) >> 32))
++