~stub/ubuntu/wily/librdkafka/hack

« back to all changes in this revision

Viewing changes to debian/patches/link-atomic.patch

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2014-02-23 18:15:37 UTC
  • Revision ID: package-import@ubuntu.com-20140223181537-kyju1g48n8d2t4e6
Tags: 0.8.3-1ubuntu2
link-atomic.patch: Fix s/__atmoic/__atomic/ typo in the previous patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
-#define rd_atomic_add_prev(PTR,VAL)  __sync_fetch_and_add(PTR,VAL)
70
70
-#define rd_atomic_sub_prev(PTR,VAL)  __sync_fetch_and_sub(PTR,VAL)
71
 
+#define rd_atomic_add_prev(PTR,VAL)  __atmoic_fetch_add(PTR,VAL,__ATOMIC_SEQ_CST)
 
71
+#define rd_atomic_add_prev(PTR,VAL)  __atomic_fetch_add(PTR,VAL,__ATOMIC_SEQ_CST)
72
72
+#define rd_atomic_sub_prev(PTR,VAL)  __atomic_fetch_sub(PTR,VAL,__ATOMIC_SEQ_CST)
73
73
 
74
74
-#define rd_atomic_set(PTR,VAL) __sync_lock_test_and_set(PTR,VAL)