fix libatomic usage on arm, cris, hppa, m68k, and sparc platforms

This commit is contained in:
Igor Sysoev 2009-12-07 15:32:38 +00:00
parent eacd5d89b7
commit 8f7c8f3c07
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,8 @@ else
ngx_feature="atomic_ops library"
ngx_feature_name=NGX_HAVE_LIBATOMIC
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_libs="-latomic_ops"
ngx_feature_test="long n = 0;

View File

@ -14,6 +14,7 @@
#if (NGX_HAVE_LIBATOMIC)
#define AO_REQUIRE_CAS
#include <atomic_ops.h>
#define NGX_HAVE_ATOMIC_OPS 1