sim-card
/
qemu
Archived
10
0
Fork 0

check for PR_SET_NAME being defined

Depending on what glibc/kernel headers you are compiling against,
PR_SET_NAME may or may not be defined.  Do the right thing if
PR_SET_NAME isn't defined and skip setting the process name.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
This commit is contained in:
Nathan Froyd 2009-08-03 07:32:12 -07:00 committed by Anthony Liguori
parent f6c64e0eea
commit 6ca8d0fd51
1 changed files with 1 additions and 1 deletions

2
vl.c
View File

@ -301,7 +301,7 @@ void hw_error(const char *fmt, ...)
static void set_proc_name(const char *s)
{
#ifdef __linux__
#if defined(__linux__) && defined(PR_SET_NAME)
char name[16];
if (!s)
return;