mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Check for PR_SET_NAME
Bug 680148 claims that PR_SET_NAME may not be defined when using an old kernel. Deal with it.
This commit is contained in:
parent
4c255d4602
commit
23a2136fb5
@ -1172,8 +1172,10 @@ void
|
||||
g_system_thread_set_name (const gchar *name)
|
||||
{
|
||||
#ifdef HAVE_SYS_PRCTL_H
|
||||
#ifdef PR_SET_NAME
|
||||
prctl (PR_SET_NAME, name, 0, 0, 0, 0);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/* {{{1 Epilogue */
|
||||
|
Loading…
Reference in New Issue
Block a user