summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authoryouri <youri@pkgsrc.org>2019-03-01 17:13:32 +0000
committeryouri <youri@pkgsrc.org>2019-03-01 17:13:32 +0000
commitadb67dd2ec0b2af8c0a1e2cd328b6a06fe0d4051 (patch)
tree964fdd69599278fdb95623adfa1da1fa9c2e5acb /x11
parent99cf3127fa38db72967c68c1e1aca41d1487c25f (diff)
downloadpkgsrc-adb67dd2ec0b2af8c0a1e2cd328b6a06fe0d4051.tar.gz
Add patch.
Diffstat (limited to 'x11')
-rw-r--r--x11/compton/distinfo3
-rw-r--r--x11/compton/patches/patch-src_compiler.h31
2 files changed, 33 insertions, 1 deletions
diff --git a/x11/compton/distinfo b/x11/compton/distinfo
index 5c9d7d8fe94..f34c4f3434f 100644
--- a/x11/compton/distinfo
+++ b/x11/compton/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2019/03/01 17:11:23 youri Exp $
+$NetBSD: distinfo,v 1.5 2019/03/01 17:13:32 youri Exp $
SHA1 (compton-5.1.tar.gz) = 323904b6305dbf32c1bb7355d75ba4f8f50e9fd1
RMD160 (compton-5.1.tar.gz) = b1d05080aaa7db33d3500620c77ea41377ee2816
SHA512 (compton-5.1.tar.gz) = 61f88019b2b4ef06e5c6a155f913b0b1c0ab7d077be5af14104596cebe0428ba6d0d98399e3c450c494945a1d4727446b2f3631989dc766439112527a9d0a888
Size (compton-5.1.tar.gz) = 199770 bytes
+SHA1 (patch-src_compiler.h) = 7072c1d176ab624241043dd8cedd4690fdc6834d
diff --git a/x11/compton/patches/patch-src_compiler.h b/x11/compton/patches/patch-src_compiler.h
new file mode 100644
index 00000000000..5df46f3a3e6
--- /dev/null
+++ b/x11/compton/patches/patch-src_compiler.h
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_compiler.h,v 1.1 2019/03/01 17:13:32 youri Exp $
+
+Fix build for NetBSD
+
+--- src/compiler.h.orig 2019-02-06 21:29:32.000000000 +0000
++++ src/compiler.h
+@@ -2,7 +2,9 @@
+ // Copyright (c) 2018 Yuxuan Shui <yshuiv7@gmail.com>
+ #pragma once
+
++#ifndef __NetBSD__
+ #include <stdc-predef.h>
++#endif
+
+ #define auto __auto_type
+ #define likely(x) __builtin_expect(!!(x), 1)
+@@ -82,6 +84,7 @@
+ # define unreachable do {} while(0)
+ #endif
+
++#ifndef __NetBSD__
+ #ifndef __STDC_NO_THREADS__
+ # include <threads.h>
+ #elif __STDC_VERSION__ >= 201112L
+@@ -91,3 +94,6 @@
+ #else
+ # define thread_local _Pragma("GCC error \"No thread local storage support\"") __error__
+ #endif
++#else
++# define thread_local __thread
++#endif