Author tnmurphy
Recipients tnmurphy
Date 2015-07-06.13:17:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436188644.05.0.0207792921606.issue24575@psf.upfronthosting.co.za>
In-reply-to
Content
This patch works for me on Linux but it seems clearly wrong for windows.

The problem is that using it on windows introduces a dependency and I don't have a windows machine to check if this is ok.  To me it seems that the time module must have been built as part of the core somehow in the past. 

diff -r 5adf995d443f Modules/timemodule.c
--- a/Modules/timemodule.c	Mon Jul 06 14:03:01 2015 +0300
+++ b/Modules/timemodule.c	Mon Jul 06 14:15:52 2015 +0100
@@ -30,6 +30,13 @@
 #endif /* MS_WINDOWS */
 #endif /* !__WATCOMC__ || __QNX__ */
 
+#define Py_BUILD_CORE 
+#include "pyport.h"
+
+#define _Py_BEGIN_SUPPRESS_IPH
+#define _Py_END_SUPPRESS_IPH
+
+
 /* Forward declarations */
 static int pysleep(_PyTime_t);
 static PyObject* floattime(_Py_clock_info_t *info);
History
Date User Action Args
2015-07-06 13:17:24tnmurphysetrecipients: + tnmurphy
2015-07-06 13:17:24tnmurphysetmessageid: <1436188644.05.0.0207792921606.issue24575@psf.upfronthosting.co.za>
2015-07-06 13:17:24tnmurphylinkissue24575 messages
2015-07-06 13:17:23tnmurphycreate