summaryrefslogtreecommitdiff
path: root/data/gnupg/clock_gettime.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/gnupg/clock_gettime.diff')
-rw-r--r--data/gnupg/clock_gettime.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/gnupg/clock_gettime.diff b/data/gnupg/clock_gettime.diff
new file mode 100644
index 000000000..f53ca2971
--- /dev/null
+++ b/data/gnupg/clock_gettime.diff
@@ -0,0 +1,12 @@
+diff -ur gnupg-2.2.9/agent/protect.c gnupg-2.2.9+iPhone/agent/protect.c
+--- gnupg-2.2.9/agent/protect.c 2018-06-12 01:25:39.000000000 -1000
++++ gnupg-2.2.9+iPhone/agent/protect.c 2018-12-03 11:31:42.000000000 -1000
+@@ -105,7 +105,7 @@
+ &data->creation_time, &data->exit_time,
+ &data->kernel_time, &data->user_time);
+ # endif
+-#elif defined (CLOCK_THREAD_CPUTIME_ID)
++#elif defined (CLOCK_THREAD_CPUTIME_ID) && defined (HAVE_CLOCK_GETTIME)
+ struct timespec tmp;
+
+ clock_gettime (CLOCK_THREAD_CPUTIME_ID, &tmp);