From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTG7h-0005Ik-Fz for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:15:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTG7c-0005Hx-Uw for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:15:17 -0400 Received: from [199.232.76.173] (port=48994 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTG7c-0005Hu-SN for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:15:12 -0400 Received: from mx20.gnu.org ([199.232.41.8]:21918) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MTG7c-0002N1-IK for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:15:12 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTG7b-0004YD-TM for qemu-devel@nongnu.org; Tue, 21 Jul 2009 10:15:12 -0400 From: Nathan Froyd Date: Tue, 21 Jul 2009 07:15:08 -0700 Message-Id: <1248185708-23715-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH] check for PR_SET_NAME being defined List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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