OSX apparently doesn't have crypt.h.  It's stuff is in unistd.h.  This is a
problem if you're building with the mysql stuff enabled.

Does this look like a reasonable patch?

--- cosign-cosign-3.3.0-branch/cgi/login.c 2014-06-02 14:44:48.000000000
-0400
+++ cosign-3.3.0rc1/cgi/login.c 2014-08-12 10:18:25.000000000 -0400
@@ -14,5 +14,9 @@
 #include <errno.h>
 # ifdef SQL_FRIEND
-#include <crypt.h>
+    #ifdef __APPLE__
+    #include <unistd.h>
+    #else
+    #include <crypt.h>
+    #endif
 # endif
 #include <ctype.h>

Liam
------------------------------------------------------------------------------
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to