Skip to content

Commit

Permalink
libglusterfs: remove duplicated Darwin macros
Browse files Browse the repository at this point in the history
Remove duplicated definitions of Darwin-specific byte swap macros.

Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
Updates: #1000
  • Loading branch information
dmantipov authored and xhernandez committed Jun 9, 2022
1 parent 3c8c9bb commit 163213f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions libglusterfs/src/glusterfs/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,6 @@

#endif /* HAVE_LLISTXATTR */

#ifdef GF_DARWIN_HOST_OS
#include <machine/endian.h>
#include <libkern/OSByteOrder.h>
#include <sys/xattr.h>

#define htobe16(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)

#define htobe32(x) OSSwapHostToBigInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x)
#define be32toh(x) OSSwapBigToHostInt32(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)

#define htobe64(x) OSSwapHostToBigInt64(x)
#define htole64(x) OSSwapHostToLittleInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#define le64toh(x) OSSwapLittleToHostInt64(x)

#endif

#ifdef GF_BSD_HOST_OS
/* In case of FreeBSD and NetBSD */

Expand Down

0 comments on commit 163213f

Please sign in to comment.