summaryrefslogtreecommitdiff
path: root/devel/libfaketime/files/patch-src_libfaketime.c
blob: 69334d3542b13f6d587b2e396576acc678a4b6a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/libfaketime.c.orig	2016-06-27 06:54:00 UTC
+++ src/libfaketime.c
@@ -23,6 +23,17 @@
 
 #define _GNU_SOURCE             /* required to get RTLD_NEXT defined */
 
+/*
+ * libfaketime.c:1246:5: error: conflicting types for 'gettimeofday'
+ * int gettimeofday(struct timeval *tv, void *tz)
+ * vs
+ * int gettimeofday(struct timeval *, struct timezone *);
+ */
+
+#define gettimeofday bsd_gettimeofday
+#include <sys/time.h>
+#undef gettimeofday
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>