mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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:
parent
f6c64e0eea
commit
6ca8d0fd51
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -301,7 +301,7 @@ void hw_error(const char *fmt, ...)
|
||||||
|
|
||||||
static void set_proc_name(const char *s)
|
static void set_proc_name(const char *s)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#if defined(__linux__) && defined(PR_SET_NAME)
|
||||||
char name[16];
|
char name[16];
|
||||||
if (!s)
|
if (!s)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue