avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From th...@apache.org
Subject [1/2] avro git commit: Add FreeBSD way of byte-swapping uint32
Date Sun, 29 Jan 2017 10:50:35 GMT
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 <amdmi3@amdmi3.ru>
Authored: Tue Jul 19 18:50:24 2016 +0300
Committer: Dmitry Marakasov <amdmi3@amdmi3.ru>
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


Mime
View raw message