aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hash_bcrypt.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-19 12:54:16 +0100
committerGravatar Sadie Powell2026-04-27 17:26:08 +0100
commit0dc19894f43ae03a7e78dabfb3784695bd0216fd (patch)
treead44bd4f6ce3e01b046905f00bace5352c366d87 /modules/hash_bcrypt.cpp
parentMerge branch 'insp4' into master. (diff)
Switch the build system to CMake.
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