* [Bug 2808] GPSD_JSON driver enhancements, step 1.
Various improvements, see http://bugs.ntp.org/2808 for details.
Changed libjsmn to a more recent version.
+* [Bug 2810] refclock_shm.c memory barrier code needs tweaks for QNX.
---
(4.2.8p2) 2015/04/07 Released by Harlan Stenn <stenn@ntp.org>
(4.2.8p2-RC3) 2015/04/03 Released by Harlan Stenn <stenn@ntp.org>
;;
esac
-dnl case "$ac_cv_header_stdatomic_h" in
-dnl yes)
-dnl AC_CHECK_FUNCS([atomic_thread_fence])
-dnl ;;
-dnl esac
+case "$ac_cv_header_stdatomic_h" in
+ yes)
+ AC_CHECK_FUNCS([atomic_thread_fence])
+ AC_CACHE_CHECK(
+ [for atomic_thread_fence()],
+ [ntp_cv_func_atomic_thread_fence],
+ [AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #include <stdatomic.h>
+ ]],
+ [[
+ atomic_thread_fence(memory_order_seq_cst);
+ ]]
+ )]
+ [ntp_cv_func_atomic_thread_fence=yes],
+ [ntp_cv_func_atomic_thread_fence=no]
+ )]
+ )
+ ;;
+esac
case "$host" in
*-*-solaris2.6)
static inline void memory_barrier(void)
{
-#ifdef HAVE_STDATOMIC_H
+#ifdef HAVE_ATOMIC_THREAD_FENCE
atomic_thread_fence(memory_order_seq_cst);
-#endif /* HAVE_STDATOMIC_H */
+#endif /* HAVE_ATOMIC_THREAD_FENCE */
}
static enum segstat_t shm_query(volatile struct shmTime *shm_in, struct shm_stat_t *shm_stat)