You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
706 B

  1. --- include/haproxy/atomic.h.orig 2018-02-17 18:17:22.219400000 +0000
  2. +++ include/haproxy/atomic.h 2018-02-17 18:18:44.598422000 +0000
  3. @@ -104,7 +104,7 @@ extern THREAD_LOCAL unsigned long tid_bit; /* The bit
  4. /* TODO: thread: For now, we rely on GCC builtins but it could be a good idea to
  5. * have a header file regrouping all functions dealing with threads. */
  6. -#if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)
  7. +#if (defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)) || (defined(__clang__) && defined(__i386__))
  8. /* gcc < 4.7 */
  9. #define HA_ATOMIC_ADD(val, i) __sync_add_and_fetch(val, i)