mirror of https://github.com/openssl/openssl.git
				
				
				
			Disable atomic refcounts with no-threads
This is needed for building with '-march=i386 no-threads', on platforms
where libatomic is not available (djgpp, specifically).  The
implementation now falls back to 'CRYPTO_atomic_add()', which performs
plain lock-free addition in a 'no-threads' build.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19751)
(cherry picked from commit b484c6268c)
			
			
This commit is contained in:
		
							parent
							
								
									b175e870e9
								
							
						
					
					
						commit
						cdcb9c76bd
					
				|  | @ -13,7 +13,7 @@ | ||||||
| # include <openssl/e_os2.h> | # include <openssl/e_os2.h> | ||||||
| # include <openssl/trace.h> | # include <openssl/trace.h> | ||||||
| 
 | 
 | ||||||
| # ifndef OPENSSL_DEV_NO_ATOMICS | # if defined(OPENSSL_THREADS) && !defined(OPENSSL_DEV_NO_ATOMICS) | ||||||
| #  if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ | #  if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ | ||||||
|       && !defined(__STDC_NO_ATOMICS__) |       && !defined(__STDC_NO_ATOMICS__) | ||||||
| #   include <stdatomic.h> | #   include <stdatomic.h> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue