Fix build with no-threads no-ec
[openssl.git] / crypto / threads_none.c
index 72bf25b0d5ff52a1c93e0fe27aaa143b4a22efb3..1fc2f0fe6c80b9f70d9396bb5563c17900c34782 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <openssl/crypto.h>
+#include <internal/cryptlib.h>
 
 #if !defined(OPENSSL_THREADS) || defined(CRYPTO_TDEBUG)
 
@@ -121,4 +122,9 @@ int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
     return 1;
 }
 
+int openssl_init_fork_handlers(void)
+{
+    return 0;
+}
+
 #endif