mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
Port changes: * Updated LICENSE_FILE * Added IGNORE_FreeBSD_10 because of missing _cxa_thread_atexit() * Added to LIB_DEPENDS * Added USE_GNOME * Removed USE_LDCONFIG * Updated post-patch PR: 226276 Submitted by: Olexandr Davydenko <odavydenko@gmail.com> Approved by: tcberner (mentor, implicit)
21 lines
482 B
C++
21 lines
482 B
C++
--- ../../zen/thread.h.orig 2018-03-01 11:48:04.473377000 +0200
|
|
+++ ../../zen/thread.h 2018-03-01 11:48:51.214192000 +0200
|
|
@@ -12,8 +12,7 @@
|
|
#include "scope_guard.h"
|
|
#include "type_traits.h"
|
|
#include "optional.h"
|
|
- #include <sys/prctl.h>
|
|
-
|
|
+#include <pthread_np.h>
|
|
|
|
namespace zen
|
|
{
|
|
@@ -407,7 +406,7 @@
|
|
inline
|
|
void setCurrentThreadName(const char* threadName)
|
|
{
|
|
- ::prctl(PR_SET_NAME, threadName, 0, 0, 0);
|
|
+ pthread_set_name_np(pthread_self(), threadName);
|
|
|
|
}
|
|
|