bug 871280 - add HAVE_SOCKLEN_T define for NetBSD. r=ted
authorMartin Husemann <martin@NetBSD.ORG>
Mon, 20 Apr 2015 10:45:21 -0400
changeset 4620 2c7013152e22b025eb122c6886c6ff68198dff3d
parent 4619 6b30fde4148a2855e0ac910c698a4c72ebb12da0
child 4621 a1a22dd6a680238d6234e4927b5ae20e678426f4
push id160
push usertmielczarek@mozilla.com
push dateMon, 20 Apr 2015 14:57:47 +0000
reviewersted
bugs871280
bug 871280 - add HAVE_SOCKLEN_T define for NetBSD. r=ted
configure
configure.in
--- a/configure
+++ b/configure
@@ -7311,16 +7311,18 @@ tools are selected during the Xcode/Deve
 
 *-netbsd*)
     $as_echo "#define XP_UNIX 1" >>confdefs.h
 
     $as_echo "#define NETBSD 1" >>confdefs.h
 
     $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
 
+    $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
+
     if test -z "$USE_NSPR_THREADS"; then
         USE_PTHREADS=1
     fi
     MDCPUCFG_H=_netbsd.cfg
     PR_MD_CSRCS=netbsd.c
 
     DSO_CFLAGS='-fPIC -DPIC'
     CFLAGS="$CFLAGS -ansi -Wall"
--- a/configure.in
+++ b/configure.in
@@ -2115,16 +2115,17 @@ tools are selected during the Xcode/Deve
 	    ;;
     esac
     ;;
 
 *-netbsd*)
     AC_DEFINE(XP_UNIX)
     AC_DEFINE(NETBSD)
     AC_DEFINE(HAVE_BSD_FLOCK)
+    AC_DEFINE(HAVE_SOCKLEN_T)
     if test -z "$USE_NSPR_THREADS"; then
         USE_PTHREADS=1
     fi
     MDCPUCFG_H=_netbsd.cfg
     PR_MD_CSRCS=netbsd.c
 
     DSO_CFLAGS='-fPIC -DPIC'
     CFLAGS="$CFLAGS -ansi -Wall"