summaryrefslogtreecommitdiff
path: root/x11/picom/hacks.mk
blob: ad35552f8395596817c4a2a5461242fa8ec60462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $NetBSD: hacks.mk,v 1.3 2022/07/29 21:16:32 tnn Exp $

.if !defined(PICOM_HACKS_MK)
PICOM_HACKS_MK=	defined

### [Sat Jan 11 23:38:59 JST 2020 : pho]
### The predefined CPP macro __STDC_NO_THREADS__ is expected to be
### defined by *libc* which doesn't support C11 threads... What? Then
### what about libc which doesn't even know what C11 threads are?
###
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 090000
PKG_HACKS+=	c11-no-threads
CPPFLAGS+=	-D__STDC_NO_THREADS__
.endif

.endif  # PICOM_HACKS_MK