Repository: avro Updated Branches: refs/heads/master 630e6bc0e -> f5cbd7378
Add FreeBSD way of byte-swapping uint32 Project: http://git-wip-us.apache.org/repos/asf/avro/repo Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/f2c7b08c Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/f2c7b08c Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/f2c7b08c Branch: refs/heads/master Commit: f2c7b08c3395cd9065730c21bd1a6dc25a57dbf4 Parents: 0376544 Author: Dmitry Marakasov <[email protected]> Authored: Tue Jul 19 18:50:24 2016 +0300 Committer: Dmitry Marakasov <[email protected]> Committed: Tue Jul 19 18:50:24 2016 +0300 ---------------------------------------------------------------------- lang/c/src/codec.c | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/avro/blob/f2c7b08c/lang/c/src/codec.c ---------------------------------------------------------------------- diff --git a/lang/c/src/codec.c b/lang/c/src/codec.c index 4a2502b..e0d35be 100644 --- a/lang/c/src/codec.c +++ b/lang/c/src/codec.c @@ -21,6 +21,9 @@ # if defined(__APPLE__) # include <libkern/OSByteOrder.h> # define __bswap_32 OSSwapInt32 +# elif defined(__FreeBSD__) +# include <sys/endian.h> +# define __bswap_32 bswap32 # else # include <byteswap.h> # endif
