Fixed some C++ build issues with fd.h.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-05-13 00:27:29 +00:00
parent b263fa5a63
commit 976b0da0d6

View File

@ -76,12 +76,13 @@ static struct io_context *get_current_io_context(bool kernel);
/* Inlines */ /* Inlines */
static __inline struct io_context *get_current_io_context(bool kernel) static inline struct io_context *
get_current_io_context(bool kernel)
{ {
if (kernel) if (kernel)
return team_get_kernel_team()->io_context; return (struct io_context *)team_get_kernel_team()->io_context;
return thread_get_current_thread()->team->io_context; return (struct io_context *)thread_get_current_thread()->team->io_context;
} }
#endif /* _FD_H */ #endif /* _FD_H */