From bad472294cbc3a0855e762d35e76f4a625719cfb Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Thu, 1 Mar 2012 04:24:45 +0000 Subject: [PATCH] fix a warning --- BasiliskII/src/Unix/sys_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/sys_unix.cpp b/BasiliskII/src/Unix/sys_unix.cpp index bec5b5d5..dc9892e3 100644 --- a/BasiliskII/src/Unix/sys_unix.cpp +++ b/BasiliskII/src/Unix/sys_unix.cpp @@ -800,8 +800,8 @@ loff_t SysGetFileSize(void *arg) if (fh->is_file) return fh->file_size; else { - long blocks; #if defined(__linux__) + long blocks; if (ioctl(fh->fd, BLKGETSIZE, &blocks) < 0) return 0; D(bug(" BLKGETSIZE returns %d blocks\n", blocks));