diff -ru ./main.cc ../../nt-1.07.1/main/main.cc
--- ./main.cc	Thu Nov  4 10:28:18 1999
+++ ../../nt-1.07.1/main/main.cc	Thu Nov 25 22:18:21 1999
@@ -9,11 +9,20 @@
  *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ipc.h>
+#if (defined(BSD) && (BSD >= 199306))
+#include <sys/msgbuf.h>
+#include <sys/time.h>
+#else
 #include <sys/msg.h>
 #include <sys/timeb.h>
+#endif
 #include <unistd.h>
 #include <fcntl.h>
 #include <stdio.h>
@@ -865,9 +874,15 @@
 };
 
 unsigned int tMain::get_precise_time(){
+#if (defined(BSD) && (BSD >= 199306))
+	struct timeval tp;
+	gettimeofday(&tp, NULL);
+	return(tp.tv_sec*1000+tp.tv_usec);
+#else
 	struct timeb tp;
 	ftime(&tp);
 	return(tp.time*1000+tp.millitm);
+#endif
 };
 
 void tMain::speed() {
