From a9eb1907a6451cdfe68f5924b138cfbeebc4dcf1 Mon Sep 17 00:00:00 2001 From: Emmanuel Pacaud Date: Wed, 7 Nov 2012 09:58:45 +0100 Subject: [PATCH] Check for PR_GET_NAME PR_GET_NAME may not be defined when using an old kernel. Deal with it. --- glib/tests/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/tests/thread.c b/glib/tests/thread.c index 29b3850..f91fcae 100644 --- a/glib/tests/thread.c +++ b/glib/tests/thread.c @@ -168,12 +168,14 @@ static gpointer thread6_func (gpointer data) { #ifdef HAVE_SYS_PRCTL_H +#ifdef PR_GET_NAME const gchar name[16]; prctl (PR_GET_NAME, name, 0, 0, 0, 0); g_assert_cmpstr (name, ==, (gchar*)data); #endif +#endif return NULL; } -- 2.7.4