diff --git a/ChangeLog b/ChangeLog index aab562cb3..c6d00fa7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,8 @@ Changes * Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE. Bug fixes + * Fixed include location of endian.h on FreeBSD (found by + Gabriel) * Fixed HMAC-MD2 by modifying md2_starts(), so that the required HMAC ipad and opad variables are not cleared. (found by code coverage tests) diff --git a/library/net.c b/library/net.c index 41bb2d93f..b213f2444 100644 --- a/library/net.c +++ b/library/net.c @@ -55,7 +55,11 @@ static int wsa_init_done = 0; #include #include #include +#if defined(__FreeBSD__) +#include +#else #include +#endif #endif