Add support for reference counting using C11 atomics
[openssl.git] / crypto / dso / dso_locl.h
index fbfad0544a73d1e63c1f1b352388d3d95f2cce69..14a0ccb7c0128d488ea36c814afe63feb8fc5881 100644 (file)
@@ -11,6 +11,7 @@
 #include "internal/cryptlib.h"
 #include "internal/dso.h"
 #include "internal/dso_conf.h"
+#include "internal/refcount.h"
 
 /**********************************************************************/
 /* The low-level handle type used to refer to a loaded shared library */
@@ -24,7 +25,7 @@ struct dso_st {
      * "Handles" and such go in a STACK.
      */
     STACK_OF(void) *meth_data;
-    int references;
+    CRYPTO_REF_COUNT references;
     int flags;
     /*
      * For use by applications etc ... use this for your bits'n'pieces, don't