mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
Check for PR_GET_NAME
PR_GET_NAME may not be defined when using an old kernel. Deal with it.
This commit is contained in:
parent
8195be761c
commit
46274f6d5a
@ -168,11 +168,13 @@ static gpointer
|
|||||||
thread6_func (gpointer data)
|
thread6_func (gpointer data)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYS_PRCTL_H
|
#ifdef HAVE_SYS_PRCTL_H
|
||||||
|
#ifdef PR_GET_NAME
|
||||||
const gchar name[16];
|
const gchar name[16];
|
||||||
|
|
||||||
prctl (PR_GET_NAME, name, 0, 0, 0, 0);
|
prctl (PR_GET_NAME, name, 0, 0, 0, 0);
|
||||||
|
|
||||||
g_assert_cmpstr (name, ==, (gchar*)data);
|
g_assert_cmpstr (name, ==, (gchar*)data);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user