Skip to content
Permalink
Browse files

mod_gnutls: fix patch-src-gnutls_sni.c.diff

  • Loading branch information
Schamschula committed Jun 28, 2020
1 parent a14fc25 commit 579ecda365cd8cc41e88220212b0475727f8bb31
Showing with 6 additions and 4 deletions.
  1. +6 −4 www/mod_gnutls/files/patch-src-gnutls_sni.c.diff
@@ -1,13 +1,15 @@
--- src/gnutls_sni.c.orig 2018-11-27 23:37:07.000000000 -0600
+++ src/gnutls_sni.c 2019-01-24 06:00:09.000000000 -0600
@@ -18,7 +18,12 @@
--- src/gnutls_sni.c.orig 2019-01-28 13:50:38.000000000 -0600
+++ src/gnutls_sni.c 2020-06-28 08:19:00.000000000 -0500
@@ -18,7 +18,14 @@

#include <apr_lib.h>
#include <apr_strings.h>
-#include <byteswap.h>
+#ifdef __APPLE__
+ #include <libkern/OSByteOrder.h>
+ #define __bswap_32 OSSwapInt32
+ #define bswap_16(x) OSSwapInt16(x)
+ #define bswap_32(x) OSSwapInt32(x)
+ #define bswap_64(x) OSSwapInt64(x)
+#else
+ #include <byteswap.h>
+#endif

0 comments on commit 579ecda

Please sign in to comment.
You can’t perform that action at this time.