diff --git a/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp b/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp index 2f98ca2b01..81077f9390 100644 --- a/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp +++ b/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp @@ -11,13 +11,21 @@ #include #include -#include #include #include #include +#ifdef _KERNEL_MODE + #include + #define spawn_thread spawn_kernel_thread + #define printf dprintf +#else + #include +#endif + + PPPLCP::PPPLCP(PPPInterface& interface) : PPPProtocol("LCP", PPP_ESTABLISHMENT_PHASE, PPP_LCP_PROTOCOL, PPP_PROTOCOL_LEVEL, AF_UNSPEC, 0, interface, NULL, PPP_ALWAYS_ALLOWED), @@ -219,7 +227,7 @@ PPPLCP::Receive(struct mbuf *packet, uint16 protocolNumber) return B_ERROR; if(protocolNumber != PPP_LCP_PROTOCOL) { - dprintf("PPPLCP::Receive(): wrong protocol number!\n"); + printf("PPPLCP::Receive(): wrong protocol number!\n"); return PPP_UNHANDLED; }