Index: uspace/lib/posix/include/posix/sys/time.h
===================================================================
--- uspace/lib/posix/include/posix/sys/time.h	(revision 205f1add1bf8296dcc7805ad97ef6e3547c53b24)
+++ uspace/lib/posix/include/posix/sys/time.h	(revision f33c989e878fae6eb2786815ecf7769c2b706bc6)
@@ -34,4 +34,20 @@
 #define POSIX_SYS_TIME_H_
 
+#define DST_NONE  0
+
+typedef long suseconds_t;
+
+struct timeval {
+	time_t tv_sec;        /* seconds */
+	suseconds_t tv_usec;  /* microseconds */
+};
+
+struct timezone {
+	int tz_minuteswest;  /* minutes W of Greenwich */
+	int tz_dsttime;      /* type of dst correction */
+};
+
+extern int gettimeofday(struct timeval *, struct timezone *);
+
 #endif
 
Index: uspace/lib/posix/include/posix/time.h
===================================================================
--- uspace/lib/posix/include/posix/time.h	(revision 205f1add1bf8296dcc7805ad97ef6e3547c53b24)
+++ uspace/lib/posix/include/posix/time.h	(revision f33c989e878fae6eb2786815ecf7769c2b706bc6)
@@ -59,19 +59,5 @@
 #define CLOCK_REALTIME ((clockid_t) 0)
 
-#define DST_NONE  0
-
 #define ASCTIME_BUF_LEN  26
-
-typedef long suseconds_t;
-
-struct timeval {
-	time_t tv_sec;        /* seconds */
-	suseconds_t tv_usec;  /* microseconds */
-};
-
-struct timezone {
-	int tz_minuteswest;  /* minutes W of Greenwich */
-	int tz_dsttime;      /* type of dst correction */
-};
 
 struct itimerspec {
@@ -120,6 +106,4 @@
 extern clock_t clock(void);
 
-extern int gettimeofday(struct timeval *, struct timezone *);
-
 #endif  // POSIX_TIME_H_
 
Index: uspace/lib/posix/src/time.c
===================================================================
--- uspace/lib/posix/src/time.c	(revision 205f1add1bf8296dcc7805ad97ef6e3547c53b24)
+++ uspace/lib/posix/src/time.c	(revision f33c989e878fae6eb2786815ecf7769c2b706bc6)
@@ -35,4 +35,5 @@
 
 #include "internal/common.h"
+#include "posix/sys/time.h"
 #include "posix/time.h"
 
