Permalink
Browse files

Merge pull request #14 from ishwor/master

fix for osx10.7 deprecated function in openssl
  • Loading branch information...
2 parents 98d307e + 23268a3 commit 32fc3732f09c7c8ac92a12dc48eb59c76729c3d6 @hintjens hintjens committed Jan 6, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/fmq_hash.c
View
@@ -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"

0 comments on commit 32fc373

Please sign in to comment.