diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index b5258a3e6d..853e5298a4 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -22,8 +22,10 @@ #include #include "swab.h" +#ifndef __APPLE__ #define ntohl(x) (host_bigendian?(x):swab32(x)) #define htonl(x) (host_bigendian?(x):swab32(x)) +#endif #define ntohll(x) (host_bigendian?(x):swab64(x)) #define htonll(x) (host_bigendian?(x):swab64(x))