From aa9d957d5758f5f9ddf0833a2ed08dec000e9dad Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 27 May 2008 23:02:06 +0000 Subject: [PATCH] FreeBSD build fix, please review (needed for definition of FSSH_SEEK_CUR). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25674 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/uio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tools/fs_shell/uio.cpp b/src/tools/fs_shell/uio.cpp index 0551ef11a6..dbf39b3c13 100644 --- a/src/tools/fs_shell/uio.cpp +++ b/src/tools/fs_shell/uio.cpp @@ -7,6 +7,10 @@ #include "fssh_uio.h" +#if defined(HAIKU_HOST_PLATFORM_FREEBSD) +#include "fssh_unistd.h" +#endif + #include #include @@ -51,7 +55,7 @@ fssh_readv(int fd, const struct fssh_iovec *vector, fssh_size_t count) #if !defined(HAIKU_HOST_PLATFORM_FREEBSD) return readv(fd, systemVecs, count); #else - return readv_pos(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count); + return readv_pos(fd, lseek(fd, 0, FSSH_SEEK_CUR), systemVecs, count); #endif } @@ -87,7 +91,7 @@ fssh_writev(int fd, const struct fssh_iovec *vector, fssh_size_t count) #if !defined(HAIKU_HOST_PLATFORM_FREEBSD) return writev(fd, systemVecs, count); #else - return writev_pos(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count); + return writev_pos(fd, lseek(fd, 0, FSSH_SEEK_CUR), systemVecs, count); #endif }