From 2c538c86c15d597cc875dc926e4e39285c5625df Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 10 May 2010 16:48:20 -0700 Subject: Upstream: Use CONFIG_BSD instead of _BSD and HOST_BSD Also fix OS X build, which failed with a link error. Change-Id: Idd63f25dc1f46ea66da5727c7577def34f048c3c --- osdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'osdep.c') diff --git a/osdep.c b/osdep.c index 5065079..f4aab9b 100644 --- a/osdep.c +++ b/osdep.c @@ -28,7 +28,7 @@ #include #include #include -#ifdef HOST_SOLARIS +#ifdef CONFIG_SOLARIS #include #include #endif @@ -39,7 +39,7 @@ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include -#elif defined(_BSD) +#elif defined(CONFIG_BSD) #include #else #include @@ -95,7 +95,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; @@ -104,7 +104,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 @@ -185,7 +185,7 @@ void *qemu_memalign(size_t alignment, size_t size) if (ret != 0) return NULL; return ptr; -#elif defined(HOST_BSD) +#elif defined(CONFIG_BSD) return valloc(size); #else return memalign(alignment, size); -- cgit v1.1