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 <netdb.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 #define closesocket close
 #endif
 
 #include <stdio.h>
+#ifndef WIN32
+#include <string.h>
+#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 <net/if.h>
 #include <sys/ioctl.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 
 typedef int SOCKET;
