diff --git mfbt/Atomics.h mfbt/Atomics.h
index d79af6c..40b9336 100644
--- mozilla/mfbt/Atomics.h
+++ mozilla/mfbt/Atomics.h
@@ -35,7 +35,7 @@
     */
 #  if !defined(__linux__) && !defined(__OpenBSD__) && \
       (__cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && \
-      __has_include(<atomic>)
+      __has_include_next(<atomic>)
 #    define MOZ_HAVE_CXX11_ATOMICS
 #  endif
 /*
