changeset 1119:5fb0aafeaac6

. Correct header and names for the bswap* macros on BSD.
author glewis@misty.eyesbeyond.com
date Sun, 15 Nov 2009 12:43:44 -0800
parents f5f400d6929e
children d6e9dd8952b4
files src/os_cpu/bsd_zero/vm/bytes_bsd_zero.inline.hpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/bsd_zero/vm/bytes_bsd_zero.inline.hpp	Sun Nov 15 12:43:06 2009 -0800
+++ b/src/os_cpu/bsd_zero/vm/bytes_bsd_zero.inline.hpp	Sun Nov 15 12:43:44 2009 -0800
@@ -25,16 +25,16 @@
 // Efficient swapping of data bytes from Java byte
 // ordering to native byte ordering and vice versa.
 
-#include <byteswap.h>
+#include <sys/endian.h>
 
 inline u2 Bytes::swap_u2(u2 x) {
-  return bswap_16(x);
+  return bswap16(x);
 }
 
 inline u4 Bytes::swap_u4(u4 x) {
-  return bswap_32(x);
+  return bswap32(x);
 }
 
 inline u8 Bytes::swap_u8(u8 x) {
-  return bswap_64(x);
+  return bswap64(x);
 }