task: Check for PR_SET_NAME before using

Fixes: #653172.

Signed-off-by: David Schleef <ds@schleef.org>
This commit is contained in:
Emmanuel Pacaud 2011-06-25 13:51:52 -07:00 committed by David Schleef
parent 55468bf711
commit 156583a69c

View file

@ -225,7 +225,7 @@ gst_task_finalize (GObject * object)
static void
gst_task_configure_name (GstTask * task)
{
#ifdef HAVE_SYS_PRCTL_H
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_NAME)
const gchar *name;
gchar thread_name[17] = { 0, };