summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-05 00:12:43 +0000
committerVincent Sanders <vince@kyllikki.org>2015-01-11 13:10:07 +0000
commit16619db6108a9f6078baa7013e55474aebcdedfe (patch)
treec5c188be24c86d4d9cbf14c3c6ce554b41929945 /sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p
parent3bc29efcbedcf844525f673d20b7c225b8b1da53 (diff)
downloadtoolchains-16619db6108a9f6078baa7013e55474aebcdedfe.tar.gz
toolchains-16619db6108a9f6078baa7013e55474aebcdedfe.tar.bz2
Fix OpenSSL build for the m68k-unknown-amigaos toolchain
Diffstat (limited to 'sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p')
-rw-r--r--sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p16
1 files changed, 16 insertions, 0 deletions
diff --git a/sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p
new file mode 100644
index 0000000..3f3a4ec
--- /dev/null
+++ b/sdk/recipes/patches/openssl/m68k-unknown-amigaos/apps.apps.c.p
@@ -0,0 +1,16 @@
+--- apps.c 2014-10-15 13:53:39.000000000 +0100
++++ apps/apps.c 2015-01-05 21:02:13.650018727 +0000
+@@ -3009,9 +3009,11 @@ double app_tminterval(int stop,int usert
+ struct rusage rus;
+ struct timeval now;
+ static struct timeval tmstart;
+-
++#if !defined(OPENSSL_SYS_AMIGAOS3)
+ if (usertime) getrusage(RUSAGE_SELF,&rus), now = rus.ru_utime;
+- else gettimeofday(&now,NULL);
++ else
++#endif
++ gettimeofday(&now,NULL);
+
+ if (stop==TM_START) tmstart = now;
+ else ret = ( (now.tv_sec+now.tv_usec*1e-6)