Date: Mon, 16 Mar 2020 18:19:16 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 237567] devel/glib20 - upgrade, improve Message-ID: <bug-237567-6497-1PvZMh7fpn@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-237567-6497@https.bugs.freebsd.org/bugzilla/> References: <bug-237567-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237567 --- Comment #4 from Jan Beich <jbeich@FreeBSD.org> --- Comment on attachment 204019 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204019 Enable setting and getting of threads' names Needs to be submitted upstream as configure bits look wrong. > +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) = || defined(__DragonFlyBSD__) DragonFly only defines __DragonFly__ but not __DragonFlyBSD__. Also, sort systems alphabetically. > +# include <pthread_np.h> Does not exist on NetBSD. > +# if defined(__NetBSD__) > +# define pthread_setname_np(t, s) pthread_set_name_np(t, s, NULL) pthread_set_name_np doesn't exist on NetBSD while pthread_setname_np[1] does but requires 3 arguments. Additionally, the 3rd argument needs to be explic= itly cast to (void *) to avoid compile error. See graphics/vkd3d/files/patch-libs_vkd3d_vkd3d__private.h for a simple example. [1] https://netbsd.gw.com/cgi-bin/man-cgi?pthread_setname_np+3+NetBSD-curre= nt --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237567-6497-1PvZMh7fpn>