File: fix_FTBFS_timings.patch

package info (click to toggle)
spooles 2.2-14.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,772 kB
  • sloc: ansic: 146,836; sh: 7,571; csh: 3,615; makefile: 1,970; perl: 74
file content (23 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (2)
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