* sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
[fw/sdcc] / sim / ucsim / cmd.src / cmdutil.cc
index c6820e9baedeb43272ef08db018e8ea23e427019..067a3afcd53df6ec693528643b2cb653a67d2358 100644 (file)
@@ -32,6 +32,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <stdlib.h>
 #include <ctype.h>
 #include <assert.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #ifdef SOCKET_AVAIL
 # include HEADER_SOCKET
@@ -40,6 +41,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #  include <arpa/inet.h>
 # endif
 #endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #ifdef _WIN32
 #include <malloc.h>
 #endif