Skip to contentSkip to conversation

bsd-user: Remove reference to CONFIG_UNAME_RELEASE

PATCH In review Peter Maydell 1 participant 2 messages May 9, 2014 – May 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bsd-user: Remove reference to CONFIG_UNAME_RELEASE

Commit e586822a5 broke the bsd-user build when it removed the CONFIG_UNAME_RELEASE define but forgot to remove the use of it in bsd-user. Fix this in the simplest possible way (bsd-user doesn't make any use at all of the qemu_uname_release variable except to allow it to be pointlessly set by the user, so this is all we need to do.)

---
Not even compile tested, since I don't have a BSD system to hand. If somebody would like to provide a Tested-by: then I'll apply it to master...

 bsd-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bsd-user/main.c +1 -1
index f81ba55..0f9169d 100644
@@ -43,7 +43,7 @@ unsigned long reserved_va;
 #endif
 
 static const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;
-const char *qemu_uname_release = CONFIG_UNAME_RELEASE;
+const char *qemu_uname_release;
 extern char **environ;
 enum BSDType bsd_type;
 
Signature · 1 line
1.9.2
#1 lore raw
Quoted 7 lines · Peter Maydell

Commit e586822a5 broke the bsd-user build when it removed the CONFIG_UNAME_RELEASE define but forgot to remove the use of it in bsd-user. Fix this in the simplest possible way (bsd-user doesn't make any use at all of the qemu_uname_release variable except to allow it to be pointlessly set by the user, so this is all we need to do.)

Quoted 5 lines

---
Not even compile tested, since I don't have a BSD system to hand. If somebody would like to provide a Tested-by: then I'll apply it to master...

In the absence of any testers I applied it anyway...

thanks
-- PMM