summaryrefslogtreecommitdiff
path: root/x11/picom
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2020-01-11 14:47:18 +0000
committerpho <pho@pkgsrc.org>2020-01-11 14:47:18 +0000
commitc3f49ec40bcb5c78573d5c08d1db0e2e490798a8 (patch)
treea115a116c872c0d641dec59badc2fc546bc03f9c /x11/picom
parent6e57c912842ea6e9566848856029f2300db6f5d6 (diff)
downloadpkgsrc-c3f49ec40bcb5c78573d5c08d1db0e2e490798a8.tar.gz
Fix build on NetBSD 8.1
Diffstat (limited to 'x11/picom')
-rw-r--r--x11/picom/hacks.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11/picom/hacks.mk b/x11/picom/hacks.mk
new file mode 100644
index 00000000000..e95600d0a86
--- /dev/null
+++ b/x11/picom/hacks.mk
@@ -0,0 +1,14 @@
+.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 !empty(MACHINE_PLATFORM:MNetBSD-[0-8].*-*)
+PKG_HACKS+= c11-no-threads
+CPPFLAGS+= -D__STDC_NO_THREADS__
+.endif
+
+.endif # PICOM_HACKS_MK