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