diff --git a/src/ip.cpp b/src/ip.cpp index 5c57bcb..252ce11 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -387,7 +387,7 @@ void IP::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU* pare protocol(new_flag); } - #if __FreeBSD__ || defined(__FreeBSD_kernel__) + #if __FreeBSD__ || defined(__FreeBSD_kernel__) || __APPLE__ if(!parent) total_sz = Endian::host_to_be(total_sz); #endif