In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/ec015202b887bc1ede4b6538364b88eb80c4956d?hp=1e02895ff34c407637067df12a1b06eb07a5a96a>

- Log -----------------------------------------------------------------
commit ec015202b887bc1ede4b6538364b88eb80c4956d
Author: Jarkko Hietaniemi <[email protected]>
Date:   Tue Oct 7 22:20:28 2014 +0200

    Tru64: does have sa_len.

M       hints/dec_osf.sh

commit 0befe6f120ed237c1658f27caa9950f1e21ef40b
Author: Jarkko Hietaniemi <[email protected]>
Date:   Tue Oct 7 22:21:54 2014 +0200

    Tru64: _SOCKADDR_LEN is good.
    
    Declare it as early as possible.  The earlier position lead into
    getting a mix of different APIs with mismatching sockadddrs.

M       perl.h
-----------------------------------------------------------------------

Summary of changes:
 hints/dec_osf.sh |  3 +++
 perl.h           | 16 ++++++++--------
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 9856961..5a16806 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -539,6 +539,9 @@ gcc)   ;;
        ;;
 esac
 
+# Would need -D_SOCKADDR_LEN for the Configure test.
+d_sockaddr_sa_len='define'
+
 #
 # Unset temporary variables no more needed.
 #
diff --git a/perl.h b/perl.h
index e6e1320..091d2d1 100644
--- a/perl.h
+++ b/perl.h
@@ -1063,6 +1063,14 @@ EXTERN_C int usleep(unsigned int);
 #   endif
 #endif /* !HAS_BCMP */
 
+/* In Tru64 define _SOCKADDR_LEN to use 4.4BSD and IPv6 interfaces.
+ * Define it before any network headers like netinet/in.h or sys/socket.h.
+ * For OSF/1 3.2, however, defining _SOCKADDR_LEN would be
+ * a bad idea since it breaks send() and recv(). */
+#if defined(__osf__) && defined(__alpha) && !defined(_SOCKADDR_LEN) && 
!defined(DEC_OSF1_3_X)
+#   define _SOCKADDR_LEN
+#endif
+
 #ifdef I_NETINET_IN
 #   include <netinet/in.h>
 #endif
@@ -1128,14 +1136,6 @@ EXTERN_C int usleep(unsigned int);
 #  define WIN32SCK_IS_STDSCK           /* don't pull in custom wsock layer */
 #endif
 
-/* In Tru64 use the 4.4BSD struct msghdr, not the 4.3 one.
- * This is important for using IPv6.
- * For OSF/1 3.2, however, defining _SOCKADDR_LEN would be
- * a bad idea since it breaks send() and recv(). */
-#if defined(__osf__) && defined(__alpha) && !defined(_SOCKADDR_LEN) && 
!defined(DEC_OSF1_3_X)
-#   define _SOCKADDR_LEN
-#endif
-
 #if defined(HAS_SOCKET) && !defined(WIN32) /* WIN32 handles sockets via 
win32.h */
 # include <sys/socket.h>
 # if defined(USE_SOCKS) && defined(I_SOCKS)

--
Perl5 Master Repository

Reply via email to