diff --git a/headers/os/storage/NodeMonitor.h b/headers/os/storage/NodeMonitor.h index d02d331ace..238db1fee7 100644 --- a/headers/os/storage/NodeMonitor.h +++ b/headers/os/storage/NodeMonitor.h @@ -48,7 +48,7 @@ enum { * API exported. */ -#ifdef __cplusplus +#if defined(__cplusplus) && !defined(_KERNEL_MODE) // these are only needed for the function exports #include @@ -66,6 +66,6 @@ extern status_t watch_node(const node_ref *node, uint32 flags, extern status_t stop_watching(BMessenger target); extern status_t stop_watching(const BHandler *handler, const BLooper *looper = NULL); -#endif /* __cplusplus */ +#endif /* __cplusplus && !_KERNEL_MODE */ #endif /* _NODE_MONITOR_H*/