mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +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)
|
g_system_thread_set_name (const gchar *name)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYS_PRCTL_H
|
#ifdef HAVE_SYS_PRCTL_H
|
||||||
|
#ifdef PR_SET_NAME
|
||||||
prctl (PR_SET_NAME, name, 0, 0, 0, 0);
|
prctl (PR_SET_NAME, name, 0, 0, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* {{{1 Epilogue */
|
/* {{{1 Epilogue */
|
||||||
|
Loading…
Reference in New Issue
Block a user