Lines 1-18
Link Here
|
1 |
--- src/pulsecore/atomic.h.orig 2019-09-13 13:10:23 UTC |
1 |
--- src/pulsecore/atomic.h.orig 2020-07-17 12:11:11.000000000 +0200 |
2 |
+++ src/pulsecore/atomic.h |
2 |
+++ src/pulsecore/atomic.h 2021-01-23 21:16:28.683759000 +0100 |
3 |
@@ -117,7 +117,7 @@ static inline void* pa_atomic_ptr_load(c |
3 |
@@ -117,7 +117,7 @@ |
4 |
} |
4 |
} |
5 |
|
5 |
|
6 |
static inline void pa_atomic_ptr_store(pa_atomic_ptr_t *a, void* p) { |
6 |
static inline void pa_atomic_ptr_store(pa_atomic_ptr_t *a, void* p) { |
7 |
- __atomic_store_n(&a->value, p, __ATOMIC_SEQ_CST); |
7 |
- __atomic_store_n(&a->value, (unsigned long) p, __ATOMIC_SEQ_CST); |
8 |
+ __atomic_store_n(&a->value, (uintptr_t)p, __ATOMIC_SEQ_CST); |
8 |
+ __atomic_store_n(&a->value, (uintptr_t) p, __ATOMIC_SEQ_CST); |
9 |
} |
9 |
} |
10 |
|
10 |
|
11 |
#else |
11 |
#else |
12 |
@@ -218,39 +218,6 @@ static inline bool pa_atomic_ptr_cmpxchg |
12 |
@@ -217,39 +217,6 @@ |
|
|
13 |
#include <sys/types.h> |
13 |
#include <sys/param.h> |
14 |
#include <sys/param.h> |
14 |
#include <machine/atomic.h> |
15 |
#include <machine/atomic.h> |
15 |
|
16 |
- |
16 |
-#if __FreeBSD_version < 600000 |
17 |
-#if __FreeBSD_version < 600000 |
17 |
-#if defined(__i386__) || defined(__amd64__) |
18 |
-#if defined(__i386__) || defined(__amd64__) |
18 |
-#if defined(__amd64__) |
19 |
-#if defined(__amd64__) |
Lines 45-51
Link Here
|
45 |
-} |
46 |
-} |
46 |
-#endif |
47 |
-#endif |
47 |
-#endif |
48 |
-#endif |
48 |
- |
49 |
|
49 |
typedef struct pa_atomic { |
50 |
typedef struct pa_atomic { |
50 |
volatile unsigned long value; |
51 |
volatile unsigned long value; |
51 |
} pa_atomic_t; |
|
|