Index: trunk/src/sh_login_track.c
===================================================================
--- trunk/src/sh_login_track.c	(revision 298)
+++ trunk/src/sh_login_track.c	(revision 299)
@@ -55,4 +55,16 @@
 #define SH_UTMP_S utmp
 
+#endif
+
+
+#if TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
 #endif
 
