Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #14 from ishwor/master

fix for osx10.7 deprecated function in openssl
  • Loading branch information...
commit 32fc3732f09c7c8ac92a12dc48eb59c76729c3d6 2 parents 98d307e + 23268a3
@hintjens hintjens authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/fmq_hash.c
View
8 src/fmq_hash.c
@@ -23,7 +23,13 @@
*/
#include <czmq.h>
-#include <openssl/sha.h>
+#if defined(__APPLE__)
+# define COMMON_DIGEST_FOR_OPENSSL
+# include <CommonCrypto/CommonDigest.h>
+# define SHA1 CC_SHA1
+#else
+# include <openssl/sha.h>
+#endif
#include "../include/fmq.h"
Please sign in to comment.
Something went wrong with that request. Please try again.