summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-08-03 07:32:12 -0700
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 21:23:38 -0500
commitbf3516fa924447f4fd5c129753507bc5748312e8 (patch)
treefb6ecd9a651f660089c06695ad87e6e2bf93714c
parentb0f6d6c74420bb00076d9c27dd3f07d409334668 (diff)
downloadqemu-bf3516fa924447f4fd5c129753507bc5748312e8.tar.gz
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:
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index ba8814a27b..4b3bc1154b 100644
--- a/vl.c
+++ b/vl.c
@@ -310,7 +310,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;