runvnc / bcryptnim

15 stars 4 forks source link

Like MacOS OpenBSD doesn't provide crypt.sh #4

Open ulzeraj opened 3 years ago

ulzeraj commented 3 years ago

Hi. This project doesn't compile on OpenBSD and I believe the same might be true for other BSDs.

From 0e30e92814ca2b60b8b6bdb4bac54669106ae21f Mon Sep 17 00:00:00 2001
From: Paulo Roberto Candido dos Santos <psantos@automata.ee>
Date: Fri, 21 May 2021 13:07:29 +0200
Subject: [PATCH] compilation on openbsd

---
 bcrypt/crypt-blowfish.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bcrypt/crypt-blowfish.c b/bcrypt/crypt-blowfish.c
index 8f14b20..b27f294 100644
--- a/bcrypt/crypt-blowfish.c
+++ b/bcrypt/crypt-blowfish.c
@@ -75,6 +75,8 @@
 #include "blowfish.h"
 #ifdef __APPLE__
 #include <unistd.h>
+#elif __OpenBSD__
+#include <unistd.h>
 #else
 #include "crypt.h"
 #endif
-- 
2.30.1 (Apple Git-130)