diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2009-08-03 07:32:12 -0700 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 21:23:38 -0500 |
commit | bf3516fa924447f4fd5c129753507bc5748312e8 (patch) | |
tree | fb6ecd9a651f660089c06695ad87e6e2bf93714c | |
parent | b0f6d6c74420bb00076d9c27dd3f07d409334668 (diff) | |
download | qemu-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |