From 983049b0afdb4b424974b61fd1d65b2d5fcbba8b Mon Sep 17 00:00:00 2001 From: tnn Date: Mon, 16 Mar 2015 21:51:01 +0000 Subject: [PATCH] Apply some band aid to make it build for NetBSD-current / MKLLVM=yes users since we don't yet ship stdatomic.h. --- multimedia/vlc21/hacks.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 multimedia/vlc21/hacks.mk diff --git a/multimedia/vlc21/hacks.mk b/multimedia/vlc21/hacks.mk new file mode 100644 index 000000000000..0c53713ae8f3 --- /dev/null +++ b/multimedia/vlc21/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1 2015/03/16 21:51:01 tnn Exp $ + +.if !defined(VLC21_HACKS_MK) +VLC21_HACKS_MK= # empty + +# vlc_atomic.h rightly assumes "uses clang (support for C11)" implies +# "ships stdatomic.h" but for us this is not yet the case. +# This hack should be removed when -current has stdatomic.h. +.if ${OPSYS} == "NetBSD" && \ + exists(/usr/bin/clang) && \ + !exists(/usr/include/stdatomic.h) +CPPFLAGS+= -D__STDC_NO_ATOMICS__ +.endif + +.endif