Include "mymath.h" instead of manually declaring math functions.
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index d8c1b2b..7a8c462 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -28,6 +28,10 @@
 #include "modsupport.h"
 #include "ceval.h"
 
+#ifdef HAVE_SELECT
+#include "mymath.h"
+#endif
+
 #ifdef macintosh
 #include <time.h>
 #else
@@ -415,8 +419,6 @@
 #ifdef HAVE_SELECT
 	struct timeval t;
 	double frac;
-	extern double fmod PROTO((double, double));
-	extern double floor PROTO((double));
 	frac = fmod(secs, 1.0);
 	secs = floor(secs);
 	t.tv_sec = (long)secs;