From 854963cee371380f62f6bd0ee684bf2dedebe369 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Sun, 19 Jul 2009 20:50:11 +0000
Subject: [PATCH] - Fixed include location of endian.h on FreeBSD (found by
Gabriel)
---
ChangeLog | 2 ++
library/net.c | 4 ++++
2 files changed, 6 insertions(+)
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