]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
mpv: needs atomics or 8-byte sync
authorArnout Vandecappelle <arnout@mind.be>
Sun, 20 Nov 2016 14:54:34 +0000 (15:54 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Nov 2016 21:35:05 +0000 (22:35 +0100)
commit48341ce1cb827df0862b5545900ed6b50ea6f03a
treec75193835de5d1589368b32af82b866bc7a8b36c
parente5a51555f81d3e0b0261efb9db34cc9c8c9d2463
mpv: needs atomics or 8-byte sync

The wscript checks the following.
        'func': check_libs(['atomic'],
            check_statement('stdint.h',
                'int64_t test = 0;'
                'test = __atomic_add_fetch(&test, 1, __ATOMIC_SEQ_CST)')),
and
        'func': check_statement('stdint.h',
                    'int64_t test = 0;'
                    '__typeof__(test) x = ({int a = 1; a;});'
                    'test = __sync_add_and_fetch(&test, 1)'),
It fails if neither of these are available.

Fixes
http://autobuild.buildroot.net/results/8c20f719f784af1312294600e39004c1d382368a

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mpv/Config.in