summaryrefslogtreecommitdiff
path: root/pkg/ffmpeg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-07 13:38:33 -0700
committerMichael Forney <mforney@mforney.org>2021-09-07 13:41:35 -0700
commit592b1919f429cb9597c13931261031ab38c727af (patch)
tree11fe06741a781dd4466049098f6b5902291a2af1 /pkg/ffmpeg
parentfefb82678bd82c02fd177e58170a7558df504b9c (diff)
ffmpeg: Include dummy stdatomic.h with __STDC_NO_ATOMICS__
Diffstat (limited to 'pkg/ffmpeg')
-rw-r--r--pkg/ffmpeg/gen.lua1
-rw-r--r--pkg/ffmpeg/include/stdatomic.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua
index 6b7c2cd7..d5acbf1a 100644
--- a/pkg/ffmpeg/gen.lua
+++ b/pkg/ffmpeg/gen.lua
@@ -3,6 +3,7 @@ cflags{
'-Wno-deprecated-declarations',
'-Wno-discarded-qualifiers',
'-D HAVE_AV_CONFIG_H',
+ '-I $dir/include',
'-I $outdir',
'-I $outdir/include',
'-I $outdir/internal',
diff --git a/pkg/ffmpeg/include/stdatomic.h b/pkg/ffmpeg/include/stdatomic.h
new file mode 100644
index 00000000..6a33f122
--- /dev/null
+++ b/pkg/ffmpeg/include/stdatomic.h
@@ -0,0 +1,5 @@
+#ifdef __STDC_NO_ATOMICS__
+# include <compat/atomics/dummy/stdatomic.h>
+#else
+# include_next <stdatomic.h>
+#endif