summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/openssl/apps.speed.c.p
blob: 88ae1c3bfb408c506e69fe31e52be2b4b4abd752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- apps/speed.c.orig	2017-11-22 08:07:53.851790744 +0000
+++ apps/speed.c	2017-11-22 08:15:49.608768064 +0000
@@ -111,6 +111,12 @@
 #endif
 #include <openssl/modes.h>
 
+
+#if defined(OPENSSL_SYS_AMIGAOS3) || defined(OPENSSL_SYS_AMIGAOS4)
+# define HAVE_FORK 0
+# undef SIGALRM
+#endif
+
 #ifndef HAVE_FORK
 # if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_WINDOWS)
 #  define HAVE_FORK 0
--- apps/speed.c.orig	2017-11-22 08:33:02.137445746 +0000
+++ apps/speed.c	2017-11-22 08:36:00.833790589 +0000
@@ -345,8 +345,10 @@
 static double Time_F(int s)
 {
     double ret = app_tminterval(s, usertime);
+    #ifdef SIGALRM
     if (s == STOP)
         alarm(0);
+    #endif
     return ret;
 }
 #endif