summaryrefslogtreecommitdiff
path: root/multimedia/vlc21/hacks.mk
blob: 0c53713ae8f34d3c0090820311ef6ba26a13e062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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