Hi Steve,
Dr. Stephen Henson schrieb:
> Does adding Netware to the OPENSSL_SYS_BEOS_BONE part which #undefs AF_INET6
> in b_sock.c work or do you need additional cases?
yes, this works at first glance (cant tell more since I have finally a
linkage prob so cant test ATM); with below patch compilation finishes:

--- crypto/bio/b_sock.c.orig    Mon Apr 27 21:30:36 2009
+++ crypto/bio/b_sock.c Wed Jul 22 16:37:44 2009
@@ -88,8 +88,8 @@
 static int wsa_init_done=0;
 #endif

-#if defined(OPENSSL_SYS_BEOS_BONE)             
-/* BONE's IP6 support is incomplete */
+#if defined(OPENSSL_SYS_BEOS_BONE) || defined(NETWARE_CLIB)
+/* BONE's and NetWare's CLIB IP6 support is incomplete */
 #undef AF_INET6
 #endif

> Instead of changing every single case we could instead have an #ifdef
> OPENSSL_USE_IPV6 and set that in an appropriate way in a header file.
yes, that would be fine - which header do you suggest? It must then be a
header which is always included after the system headers, or else
AF_INET6 would get defined again through the system headers, or?
So I think its more save to change all '#ifdef AF_INET6' to '#if
OPENSSL_USE_IPV6', and then in one header something like:

#if defined(OPENSSL_SYS_BEOS_BONE) || defined(NETWARE_CLIB)
/* BONE's and NetWare's CLIB IP6 support is incomplete */
#define OPENSSL_USE_IPV6 0
#endif
#if !defined(OPENSSL_USE_IPV6) && defined(AF_INET6)
#define OPENSSL_USE_IPV6 1
#endif

Günter.



--- crypto/bio/b_sock.c.orig	Mon Apr 27 21:30:36 2009
+++ crypto/bio/b_sock.c	Wed Jul 22 16:37:44 2009
@@ -88,8 +88,8 @@
 static int wsa_init_done=0;
 #endif
 
-#if defined(OPENSSL_SYS_BEOS_BONE)		
-/* BONE's IP6 support is incomplete */
+#if defined(OPENSSL_SYS_BEOS_BONE) || defined(NETWARE_CLIB)
+/* BONE's and NetWare's CLIB IP6 support is incomplete */
 #undef AF_INET6
 #endif
 

Reply via email to