[glib] Check for PR_GET_NAME
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Check for PR_GET_NAME
- Date: Thu, 8 Nov 2012 07:20:06 +0000 (UTC)
commit a9eb1907a6451cdfe68f5924b138cfbeebc4dcf1
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Nov 7 09:58:45 2012 +0100
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 files changed, 2 insertions(+), 0 deletions(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]