mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 14:29:17 -04:00
a remote display system built for virtual environments which allows you to view a computing 'desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures. This package contains the run-time libraries for any application that wishes to be a SPICE server WWW: http://spice-space.org/ PR: 225088 Submitted by: olevole@olevole.ru
27 lines
572 B
C
27 lines
572 B
C
--- server/red-worker.c.orig 2017-09-21 11:05:07 UTC
|
|
+++ server/red-worker.c
|
|
@@ -28,6 +28,7 @@
|
|
#include <unistd.h>
|
|
#include <poll.h>
|
|
#include <pthread.h>
|
|
+#include <pthread_np.h>
|
|
#include <openssl/ssl.h>
|
|
#include <inttypes.h>
|
|
#include <glib.h>
|
|
@@ -52,6 +53,16 @@
|
|
|
|
#define INF_EVENT_WAIT ~0
|
|
|
|
+int pthread_setname_np(pthread_t, const char *);
|
|
+
|
|
+
|
|
+int pthread_setname_np(pthread_t id, const char *name)
|
|
+{
|
|
+ /* this BSD function returns no error */
|
|
+ pthread_set_name_np(id, name);
|
|
+ return 0;
|
|
+}
|
|
+
|
|
struct RedWorker {
|
|
pthread_t thread;
|
|
QXLInstance *qxl;
|