aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hash_bcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hash_bcrypt.cpp')
-rw-r--r--modules/hash_bcrypt.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/hash_bcrypt.cpp b/modules/hash_bcrypt.cpp
index 349042488..bacca2493 100644
--- a/modules/hash_bcrypt.cpp
+++ b/modules/hash_bcrypt.cpp
@@ -16,11 +16,18 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/// BEGIN CMAKE
+/// target_link_libraries(${TARGET} PRIVATE "vendored_bcrypt")
+/// END CMAKE
+
#include "inspircd.h"
#include "modules/hash.h"
-#include <bcrypt/crypt_blowfish.c>
+extern "C"
+{
+#include <bcrypt/crypt_blowfish.h>
+}
class BCryptContext final
: public Hash::Context