User OPENSSL_UNISTD instead of <unistd.h>.
Spotted by Mark Crispin <MRC@Panda.COM>
diff --git a/crypto/uid.c b/crypto/uid.c
index 734bdde..d3d249c 100644
--- a/crypto/uid.c
+++ b/crypto/uid.c
@@ -54,10 +54,11 @@
*/
#include <openssl/crypto.h>
+#include <openssl/opensslconf.h>
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
-#include <unistd.h>
+#include OPENSSL_UNISTD
int OPENSSL_issetugid(void)
{
@@ -73,7 +74,7 @@
#else
-#include <unistd.h>
+#include OPENSSL_UNISTD
#include <sys/types.h>
int OPENSSL_issetugid(void)