diff options
author | nia <nia@pkgsrc.org> | 2018-11-28 18:48:58 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2018-11-28 18:48:58 +0000 |
commit | a95a203b3691f05dbc2509d1555788d690c96a3a (patch) | |
tree | ce7b8b8da7bd0a5712f0eeafe3eb28512e0361c8 /x11/kitty/patches/patch-kitty_threading.h | |
parent | 8c01993e2025f6432ccf1d42c95d062e107c6dc6 (diff) | |
download | pkgsrc-a95a203b3691f05dbc2509d1555788d690c96a3a.tar.gz |
x11/kitty: Import version 0.12.3
kitty - the fast, featureful, GPU based terminal emulator
Diffstat (limited to 'x11/kitty/patches/patch-kitty_threading.h')
-rw-r--r-- | x11/kitty/patches/patch-kitty_threading.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/kitty/patches/patch-kitty_threading.h b/x11/kitty/patches/patch-kitty_threading.h new file mode 100644 index 00000000000..53f89ca075f --- /dev/null +++ b/x11/kitty/patches/patch-kitty_threading.h @@ -0,0 +1,24 @@ +$NetBSD: patch-kitty_threading.h,v 1.1 2018/11/28 18:48:58 nia Exp $ + +Support NetBSD. + +--- kitty/threading.h.orig 2018-09-29 03:45:40.000000000 +0000 ++++ kitty/threading.h +@@ -14,6 +14,8 @@ + #if defined(__APPLE__) + // I cant figure out how to get pthread.h to include this definition on macOS. MACOSX_DEPLOYMENT_TARGET does not work. + extern int pthread_setname_np(const char *name); ++#elif defined(__NetBSD__) ++extern int pthread_getname_np(pthread_t, char *, size_t); + #elif defined(FREEBSD_SET_NAME) + // Function has a different name on FreeBSD + void pthread_set_name_np(pthread_t tid, const char *name); +@@ -27,6 +29,8 @@ set_thread_name(const char *name) { + int ret; + #if defined(__APPLE__) + ret = pthread_setname_np(name); ++#elif defined(__NetBSD__) ++ ret = pthread_setname_np(pthread_self(), name, NULL); + #elif defined(FREEBSD_SET_NAME) + pthread_set_name_np(pthread_self(), name); + ret = 0; |