[glib/glib-2-34] Check for PR_GET_NAME
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-34] Check for PR_GET_NAME
- Date: Sat, 10 Nov 2012 03:32:26 +0000 (UTC)
commit 46274f6d5a4e6c2a95cdc1637f21be6c2e2aa00f
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]