projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c4ad9d
)
qemu-ga: Fix use of environ on Darwin
author
Andreas Färber
<andreas.faerber@web.de>
Sun, 27 May 2012 15:02:20 +0000
(17:02 +0200)
committer
Michael Roth
<mdroth@linux.vnet.ibm.com>
Wed, 30 May 2012 02:00:40 +0000
(21:00 -0500)
Use _NSGetEnviron() helper to access the environment.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Cc: Charlie Somerville <charlie@charliesomerville.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
patch
|
blob
|
history
diff --git
a/qga/commands-posix.c
b/qga/commands-posix.c
index dab3bf9c9875629806f930cc46693d3f6a8b19de..4a71c27c4a20172f6cd7576d7b803df82ef5b664 100644
(file)
--- a/
qga/commands-posix.c
+++ b/
qga/commands-posix.c
@@
-22,8
+22,13
@@
#include "host-utils.h"
#ifndef CONFIG_HAS_ENVIRON
+#ifdef __APPLE__
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
extern char **environ;
#endif
+#endif
#if defined(__linux__)
#include <mntent.h>