diff '--color=auto' -uNr work.orig/client.c work/client.c --- work.orig/client.c 2026-04-06 11:44:24.618153431 +0200 +++ work/client.c 2026-04-06 11:46:26.523355456 +0200 @@ -44,10 +44,15 @@ #include #include #include +#include +#include #define closesocket close #endif #include +#ifndef WIN32 +#include +#endif #include "remote.h" #include "network.h" #include "errcode.h" @@ -57,6 +62,7 @@ int InitClientSocket (char host[],SOCKET *sock,unsigned long id); void PrintStatError (NETWORKSTATUS *stat); +int ResetDevice (void); void ReceiveIR (int mode,char cmd[]); char *trim (char st[],int i); @@ -90,7 +96,7 @@ #define VERSION "6.01.16" -main (int argc,char *argv[]) +int main (int argc,char *argv[]) { int res; // unsigned char st[256]; @@ -168,7 +174,7 @@ #ifdef WIN32 _sleep (1000); #else - sleep (1000); + sleep (1); #endif diff '--color=auto' -uNr work.orig/ip_assign.c work/ip_assign.c --- work.orig/ip_assign.c 2026-04-06 11:44:24.618153431 +0200 +++ work/ip_assign.c 2026-04-06 11:46:41.201056964 +0200 @@ -47,6 +47,7 @@ #include #include #include +#include typedef int SOCKET;