summaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:12:40 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:16 -0500
commit55f28eb71a4671c78ee9b86bd85c43bce86073ad (patch)
tree205caf75b8db25c460537d9123c7365c8ca179c9 /osdep.c
parent0dc25bedb70ea6041c08f330f13a9387faa61819 (diff)
downloadqemu-55f28eb71a4671c78ee9b86bd85c43bce86073ad.tar.gz
qemu-55f28eb71a4671c78ee9b86bd85c43bce86073ad.tar.bz2
qemu-55f28eb71a4671c78ee9b86bd85c43bce86073ad.zip
change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION}
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep.c b/osdep.c
index 410e43681b..b2e3b41672 100644
--- a/osdep.c
+++ b/osdep.c
@@ -28,7 +28,7 @@
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
-#ifdef HOST_SOLARIS
+#ifdef CONFIG_SOLARIS
#include <sys/types.h>
#include <sys/statvfs.h>
#endif
@@ -116,7 +116,7 @@ static void *kqemu_vmalloc(size_t size)
int map_anon = 0;
const char *tmpdir;
char phys_ram_file[1024];
-#ifdef HOST_SOLARIS
+#ifdef CONFIG_SOLARIS
struct statvfs stfs;
#else
struct statfs stfs;
@@ -129,7 +129,7 @@ static void *kqemu_vmalloc(size_t size)
if (phys_ram_fd < 0) {
tmpdir = getenv("QEMU_TMPDIR");
if (!tmpdir)
-#ifdef HOST_SOLARIS
+#ifdef CONFIG_SOLARIS
tmpdir = "/tmp";
if (statvfs(tmpdir, &stfs) == 0) {
#else