From 5ab62d81147f4ec72bd467f5a28af958986d1e7f Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Wed, 25 Nov 2015 20:06:41 -0500 Subject: [PATCH] FS-8578: [mod_verto] fix build error for missing __bswap_64 on osx --- src/mod/endpoints/mod_verto/ws.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/ws.h b/src/mod/endpoints/mod_verto/ws.h index 66231db419..1d020d0b33 100644 --- a/src/mod/endpoints/mod_verto/ws.h +++ b/src/mod/endpoints/mod_verto/ws.h @@ -25,7 +25,7 @@ //#include "sha1.h" #include -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__APPLE__) #define __bswap_64(x) \ x = (x>>56) | \ ((x<<40) & 0x00FF000000000000) | \ @@ -35,6 +35,8 @@ ((x>>24) & 0x0000000000FF0000) | \ ((x>>40) & 0x000000000000FF00) | \ (x<<56) +#endif +#ifdef _MSC_VER #ifndef strncasecmp #define strncasecmp _strnicmp #endif