Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sfos: core: make dependencies compile for 64bit
E.g. pulseaudio-policy-enforcement fails on:
/usr/include/pulsecore/atomic.h:289:2: error: invalid preprocessing directive #warn

Signed-off-by: Simonas Leleiva <simonas.leleiva@jollamobile.com>
  • Loading branch information
sledges authored and jusa committed Feb 24, 2021
1 parent 7a47af3 commit d21ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pulsecore/atomic.h
Expand Up @@ -317,7 +317,7 @@ static inline int pa_atomic_ptr_cmpxchg(pa_atomic_ptr_t *a, void *old_p, void* n

#elif defined(__GNUC__) && (defined(__amd64__) || defined(__x86_64__))

#warn "The native atomic operations implementation for AMD64 has not been tested thoroughly. libatomic_ops is known to not work properly on AMD64 and your gcc version is too old for the gcc-builtin atomic ops support. You have three options now: test the native atomic operations implementation for AMD64, fix libatomic_ops, or upgrade your GCC."
#warning "The native atomic operations implementation for AMD64 has not been tested thoroughly. libatomic_ops is known to not work properly on AMD64 and your gcc version is too old for the gcc-builtin atomic ops support. You have three options now: test the native atomic operations implementation for AMD64, fix libatomic_ops, or upgrade your GCC."

/* Adapted from glibc */

Expand Down

0 comments on commit d21ea1c

Please sign in to comment.