Index: uspace/lib/c/include/sys/time.h
===================================================================
--- uspace/lib/c/include/sys/time.h	(revision 85124a90e04cd9520f2ee6ea0c68f27f34b83629)
+++ uspace/lib/c/include/sys/time.h	(revision f3b405144d240cabac21367749e140e31fa2144b)
@@ -43,4 +43,7 @@
 typedef long suseconds_t;
 
+typedef uint32_t useconds_t;
+typedef uint32_t mseconds_t;
+
 struct timeval {
 	time_t tv_sec;        /* seconds */
Index: uspace/lib/c/include/unistd.h
===================================================================
--- uspace/lib/c/include/unistd.h	(revision 85124a90e04cd9520f2ee6ea0c68f27f34b83629)
+++ uspace/lib/c/include/unistd.h	(revision f3b405144d240cabac21367749e140e31fa2144b)
@@ -37,4 +37,5 @@
 
 #include <sys/types.h>
+#include <time.h>
 #include <libarch/config.h>
 
@@ -56,7 +57,4 @@
 	#define SEEK_END  2
 #endif
-
-typedef uint32_t useconds_t;
-typedef uint32_t mseconds_t;
 
 extern int dup2(int oldfd, int newfd);
Index: uspace/lib/socket/include/icmp_api.h
===================================================================
--- uspace/lib/socket/include/icmp_api.h	(revision 85124a90e04cd9520f2ee6ea0c68f27f34b83629)
+++ uspace/lib/socket/include/icmp_api.h	(revision f3b405144d240cabac21367749e140e31fa2144b)
@@ -41,5 +41,5 @@
 #include <net/inet.h>
 #include <sys/types.h>
-#include <unistd.h>
+#include <sys/time.h>
 
 #include <net_device.h>
