From 047b4d3cc83e2c73439533762bc22b88631e1d4e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 5 May 2007 13:16:00 +0000 Subject: [PATCH] Patch by Samuel Rodriguez Perez (slightly modified): Make the new bfs_shell build on FreeBSD. ioctl() is defined in a non-standard header. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21032 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/unistd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tools/fs_shell/unistd.cpp b/src/tools/fs_shell/unistd.cpp index f9964d21f1..9a08884a51 100644 --- a/src/tools/fs_shell/unistd.cpp +++ b/src/tools/fs_shell/unistd.cpp @@ -19,7 +19,12 @@ #ifdef __BEOS__ # include #else -# include // the correct place of definition for ioctl() +# if defined(HAIKU_HOST_PLATFORM_FREEBSD) +# incluce +# else + // the (POSIX) correct place of definition for ioctl() +# include +# endif # if defined(HAIKU_HOST_PLATFORM_LINUX) # include