Commit af4010a8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

vlc_threads: Include OSAtomic.h for OSMemoryBarrier().

parent 2b6038e0
......@@ -562,6 +562,9 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin)
/**
* Issues a full memory barrier.
*/
#if defined (__APPLE__)
# include <libkern/OSAtomic.h> /* OSMemoryBarrier() */
#endif
static inline void barrier (void)
{
#if defined (__APPLE__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment