pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/picom Fix build on NetBSD 8.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f89f55db1ee1
branches:  trunk
changeset: 347466:f89f55db1ee1
user:      pho <pho%pkgsrc.org@localhost>
date:      Sat Jan 11 14:47:18 2020 +0000

description:
Fix build on NetBSD 8.1

diffstat:

 x11/picom/hacks.mk |  14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 93bd7668e47c -r f89f55db1ee1 x11/picom/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/picom/hacks.mk        Sat Jan 11 14:47:18 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index