1--- apps/speed.c 2+++ apps/speed.c 3@@ -99,6 +99,13 @@ 4 #endif 5 #include <openssl/modes.h> 6 7+/* fork() breaks AppleTVOS, WatchOS, AppleTVSimulator and WatchSimulator */ 8+/* Users should configure with -DNO_FORK */ 9+#if defined(NO_FORK) 10+# undef HAVE_FORK 11+# define HAVE_FORK 0 12+#endif 13+ 14 #ifndef HAVE_FORK 15 # if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_VXWORKS) 16 # define HAVE_FORK 0 17@@ -110,6 +117,7 @@ 18 #if HAVE_FORK 19 # undef NO_FORK 20 #else 21+# undef NO_FORK 22 # define NO_FORK 23 #endif 24 25--- apps/ocsp.c 26+++ apps/ocsp.c 27@@ -36,6 +36,13 @@ 28 # include <openssl/x509v3.h> 29 # include <openssl/rand.h> 30 31+/* fork() breaks AppleTVOS, WatchOS, AppleTVSimulator and WatchSimulator */ 32+/* Users should configure with -DNO_FORK */ 33+#if defined(NO_FORK) 34+# undef HAVE_FORK 35+# define HAVE_FORK 0 36+#endif 37+ 38 #ifndef HAVE_FORK 39 # if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_WINDOWS) 40 # define HAVE_FORK 0 41@@ -47,6 +54,7 @@ 42 #if HAVE_FORK 43 # undef NO_FORK 44 #else 45+# undef NO_FORK 46 # define NO_FORK 47 #endif 48 49