Like Sun, Apple's iOS does not provide a typedef for sig_atomic_t. This patch 
adds a symbol for iOS support, and typedefs sig_atomic_t. It applies against 
1.0.0d.

diff -ur ../openssl-1.0.0d/crypto/ui/ui_openssl.c src/crypto/ui/ui_openssl.c
--- ../openssl-1.0.0d/crypto/ui/ui_openssl.c 2009-10-04 09:43:21.000000000 -0700
+++ src/crypto/ui/ui_openssl.c 2011-03-25 11:23:40.000000000 -0700
@@ -258,7 +258,7 @@
  };
 #endif

-#ifdef OPENSSL_SYS_SUNOS
+#if defined(OPENSSL_SYS_SUNOS) || defined(OPENSSL_SYS_IPHONEOS)
  typedef int sig_atomic_t;
 #endif

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to