[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] check for PR_SET_NAME being defined
From: |
Nathan Froyd |
Subject: |
Re: [Qemu-devel] [PATCH] check for PR_SET_NAME being defined |
Date: |
Wed, 22 Jul 2009 08:49:09 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 <address@hidden>
---
vl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
[...thought format.signoff would work in all cases, but apparently not...]
diff --git a/vl.c b/vl.c
index ce213c2..61f7711 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;
--
1.6.2.4