diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-08 08:23:32 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-08 08:23:32 +0000 |
commit | 179a2c1971e615ef408b3e2d32432b29325faf5b (patch) | |
tree | be335fb7949674c483726c0715a523aa382750b8 /block-raw-posix.c | |
parent | d5575a38b65a0e18e8e0fd6fa976af5bd15b9219 (diff) | |
download | qemu-179a2c1971e615ef408b3e2d32432b29325faf5b.zip qemu-179a2c1971e615ef408b3e2d32432b29325faf5b.tar.gz qemu-179a2c1971e615ef408b3e2d32432b29325faf5b.tar.bz2 |
Rename _BSD to HOST_BSD so that it's more obvious that it's defined by configure
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6775 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r-- | block-raw-posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 57e3535..8b28a43 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -750,7 +750,7 @@ static int64_t raw_getlength(BlockDriverState *bs) BDRVRawState *s = bs->opaque; int fd = s->fd; int64_t size; -#ifdef _BSD +#ifdef HOST_BSD struct stat sb; #endif #ifdef __sun__ @@ -763,7 +763,7 @@ static int64_t raw_getlength(BlockDriverState *bs) if (ret < 0) return ret; -#ifdef _BSD +#ifdef HOST_BSD if (!fstat(fd, &sb) && (S_IFCHR & sb.st_mode)) { #ifdef DIOCGMEDIASIZE if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) |