1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: fix FTBFS in timings.h
Bug-Debian: https://bugs.debian.org/747773
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2014-05-17
Index: 1/timings.h
===================================================================
--- 1.orig/timings.h
+++ 1/timings.h
@@ -1,10 +1,12 @@
#ifndef _TIMINGS_
#define _TIMINGS_
#include <sys/time.h>
+#include <time.h>
+#include <stdlib.h>
+#include <stdio.h>
static struct timeval TV ;
-static struct timezone TZ ;
#define MARKTIME(t) \
- gettimeofday(&TV, &TZ) ; \
+ gettimeofday(&TV, NULL) ; \
t = (TV.tv_sec + 0.000001*TV.tv_usec)
#endif
|