diff --git a/headers/private/kernel/boot/net/NetDefs.h b/headers/private/kernel/boot/net/NetDefs.h index c46bc0e320..8363d3b7ab 100644 --- a/headers/private/kernel/boot/net/NetDefs.h +++ b/headers/private/kernel/boot/net/NetDefs.h @@ -15,6 +15,15 @@ #include +// Network endianness +#ifndef htonl +# define htonl(x) B_HOST_TO_BENDIAN_INT32(x) +# define ntohl(x) B_BENDIAN_TO_HOST_INT32(x) +# define htons(x) B_HOST_TO_BENDIAN_INT16(x) +# define ntohs(x) B_BENDIAN_TO_HOST_INT16(x) +#endif + + // Ethernet #define ETH_ALEN 6