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 --- block/raw-posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'block') diff --git a/block/raw-posix.c b/block/raw-posix.c index fa1a394..11effd7 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -763,7 +763,7 @@ static int64_t raw_getlength(BlockDriverState *bs) BDRVRawState *s = bs->opaque; int fd = s->fd; int64_t size; -#ifdef HOST_BSD +#ifdef CONFIG_BSD struct stat sb; #ifdef __FreeBSD__ int reopened = 0; @@ -779,7 +779,7 @@ static int64_t raw_getlength(BlockDriverState *bs) if (ret < 0) return ret; -#ifdef HOST_BSD +#ifdef CONFIG_BSD #ifdef __FreeBSD__ again: #endif -- cgit v1.1