mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 02:42:48 +08:00
fix libatomic usage on arm, cris, hppa, m68k, and sparc platforms
This commit is contained in:
parent
eacd5d89b7
commit
8f7c8f3c07
@ -14,7 +14,8 @@ else
|
|||||||
ngx_feature="atomic_ops library"
|
ngx_feature="atomic_ops library"
|
||||||
ngx_feature_name=NGX_HAVE_LIBATOMIC
|
ngx_feature_name=NGX_HAVE_LIBATOMIC
|
||||||
ngx_feature_run=yes
|
ngx_feature_run=yes
|
||||||
ngx_feature_incs="#include <atomic_ops.h>"
|
ngx_feature_incs="#define AO_REQUIRE_CAS
|
||||||
|
#include <atomic_ops.h>"
|
||||||
ngx_feature_path=
|
ngx_feature_path=
|
||||||
ngx_feature_libs="-latomic_ops"
|
ngx_feature_libs="-latomic_ops"
|
||||||
ngx_feature_test="long n = 0;
|
ngx_feature_test="long n = 0;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#if (NGX_HAVE_LIBATOMIC)
|
#if (NGX_HAVE_LIBATOMIC)
|
||||||
|
|
||||||
|
#define AO_REQUIRE_CAS
|
||||||
#include <atomic_ops.h>
|
#include <atomic_ops.h>
|
||||||
|
|
||||||
#define NGX_HAVE_ATOMIC_OPS 1
|
#define NGX_HAVE_ATOMIC_OPS 1
|
||||||
|
Loading…
Reference in New Issue
Block a user