Author: Armin Rigo <[email protected]>
Branch:
Changeset: r44556:6279f4f07ceb
Date: 2011-05-27 20:30 +0200
http://bitbucket.org/pypy/pypy/changeset/6279f4f07ceb/
Log: A missing #include means that CLOCK_THREAD_CPUTIME_ID is not
defined, even on Linux. Bad fijal, no cookie. But it's true that
it's hard to test: both versions give numbers that are reasonable.
I'll try to come up with a test anyway...
diff --git a/pypy/translator/c/src/debug_print.c
b/pypy/translator/c/src/debug_print.c
--- a/pypy/translator/c/src/debug_print.c
+++ b/pypy/translator/c/src/debug_print.c
@@ -6,6 +6,8 @@
#include <stdio.h>
#ifndef _WIN32
#include <unistd.h>
+#include <time.h>
+#include <sys/time.h>
#else
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit