From ea70c8b6f35d415767e1c61e1274cda260e2b15c Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Wed, 23 Jul 2008 22:15:05 +0000 Subject: [PATCH] julun+mauricek: * additional includes for cygwin * some automatic whitespace cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26588 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/unistd.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tools/fs_shell/unistd.cpp b/src/tools/fs_shell/unistd.cpp index fd4ae6b8ee..1a412a663d 100644 --- a/src/tools/fs_shell/unistd.cpp +++ b/src/tools/fs_shell/unistd.cpp @@ -28,6 +28,9 @@ # ifndef HAIKU_HOST_PLATFORM_DARWIN # include # endif +#elif defined(HAIKU_HOST_PLATFORM_CYGWIN) +# include +# include # else // the (POSIX) correct place of definition for ioctl() # include @@ -56,7 +59,7 @@ test_size(int fd, off_t size) if (size == 0) return true; - + if (lseek(fd, size - 1, SEEK_SET) < 0) return false; @@ -233,7 +236,7 @@ fssh_ioctl(int fd, unsigned long op, ...) // Seems to be a md device, then ioctls returns lots of // zeroes and hardcode some defaults disklabel.d_nsectors = 64; - disklabel.d_ntracks = 16; + disklabel.d_ntracks = 16; } disklabel.d_secperunit = mediaSize / disklabel.d_secsize; @@ -293,7 +296,7 @@ fssh_ioctl(int fd, unsigned long op, ...) break; } - } + } va_end(list);