pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/compton Add patch.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ebc43ef6656
branches:  trunk
changeset: 330378:9ebc43ef6656
user:      youri <youri%pkgsrc.org@localhost>
date:      Fri Mar 01 17:13:32 2019 +0000

description:
Add patch.

diffstat:

 x11/compton/distinfo                     |   3 ++-
 x11/compton/patches/patch-src_compiler.h |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 4f415ff92df3 -r 9ebc43ef6656 x11/compton/distinfo
--- a/x11/compton/distinfo      Fri Mar 01 17:11:38 2019 +0000
+++ b/x11/compton/distinfo      Fri Mar 01 17:13:32 2019 +0000
@@ -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 -r 4f415ff92df3 -r 9ebc43ef6656 x11/compton/patches/patch-src_compiler.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/compton/patches/patch-src_compiler.h  Fri Mar 01 17:13:32 2019 +0000
@@ -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@localhost>
+ #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



Home | Main Index | Thread Index | Old Index