Mbed-TLS / mbedtls

An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
https://www.trustedfirmware.org/projects/mbed-tls/
Other
5.21k stars 2.55k forks source link

Fix DragonFly BSD support [patch] #123

Closed jrmarino closed 10 years ago

jrmarino commented 10 years ago

Hi, thanks for including DragonFly support. It's not quite right though. This simple patch will allow the version of PolarSSL in FreeBSD (1.2.10) ports to build on DragonFly:

--- library/net.c.orig  2013-10-07 10:06:29.000000000 +0000
+++ library/net.c
@@ -60,7 +60,7 @@ static int wsa_init_done = 0;
 #include <errno.h>

 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ||  \
-    defined(__DragonflyBSD__)
+    defined(__DragonFly__)
 #include <sys/endian.h>
 #elif defined(__APPLE__)
 #include <machine/endian.h>
mpg commented 10 years ago

This has been fixed in PolarSSL 1.3.7 and backported to 1.2.11. Thanks for your report and patch anyway.