packages feed

network 2.4.2.0 → 2.4.2.1

raw patch · 9 files changed

+205/−131 lines, 9 filesdep ~base

Dependency ranges changed: base

Files

Network/BSD.hsc view
@@ -16,9 +16,6 @@  #include "HsNet.h" --- NOTE: ##, we want this interpreted when compiling the .hs, not by hsc2hs.-##include "Typeable.h"- module Network.BSD     (     -- * Host names
Network/Socket.hsc view
@@ -22,9 +22,6 @@  #include "HsNet.h" --- NOTE: ##, we want this interpreted when compiling the .hs, not by hsc2hs.-##include "Typeable.h"- -- In order to process this file, you need to have CALLCONV defined.  module Network.Socket@@ -923,12 +920,12 @@     Just UseLoopBack   -> Just ((#const SOL_SOCKET), (#const SO_USELOOPBACK)) #endif #endif // SOL_SOCKET-#ifdef IPPROTO_IP+#if HAVE_DECL_IPPROTO_IP #ifdef IP_TTL     Just TimeToLive    -> Just ((#const IPPROTO_IP), (#const IP_TTL)) #endif-#endif // IPPROTO_IP-#ifdef IPPROTO_TCP+#endif // HAVE_DECL_IPPROTO_IP+#if HAVE_DECL_IPPROTO_TCP #ifdef TCP_MAXSEG     Just MaxSegment    -> Just ((#const IPPROTO_TCP), (#const TCP_MAXSEG)) #endif@@ -938,12 +935,12 @@ #ifdef TCP_CORK     Just Cork          -> Just ((#const IPPROTO_TCP), (#const TCP_CORK)) #endif-#endif // IPPROTO_TCP-#ifdef IPPROTO_IPV6+#endif // HAVE_DECL_IPPROTO_TCP+#if HAVE_DECL_IPPROTO_IPV6 #if HAVE_DECL_IPV6_V6ONLY     Just IPv6Only      -> Just ((#const IPPROTO_IPV6), (#const IPV6_V6ONLY)) #endif-#endif // IPPROTO_IPV6+#endif // HAVE_DECL_IPPROTO_IPV6     _             -> Nothing  -- | Return the option level and option value if they exist,@@ -1128,6 +1125,10 @@  -- ----------------------------------------------------------------------------- +-- | Determines whether 'close' has been used on the 'Socket'. This+-- does /not/ indicate any status about the socket beyond this. If the+-- socket has been closed remotely, this function can still return+-- 'True'. isConnected :: Socket -> IO Bool isConnected (MkSocket _ _ _ _ status) = do     value <- readMVar status
Network/Socket/Types.hsc view
@@ -90,14 +90,19 @@  type ProtocolNumber = CInt +-- | The status of the socket as /determined by this library/, not+-- necessarily reflecting the state of the connection itself.+--+-- For example, the 'Closed' status is applied when the 'close'+-- function is called. data SocketStatus   -- Returned Status    Function called-  = NotConnected        -- socket-  | Bound               -- bind-  | Listening           -- listen-  | Connected           -- connect/accept-  | ConvertedToHandle   -- is now a Handle, don't touch-  | Closed              -- close+  = NotConnected        -- ^ Newly created, unconnected socket+  | Bound               -- ^ Bound, via 'bind'+  | Listening           -- ^ Listening, via 'listen'+  | Connected           -- ^ Connected or accepted, via 'connect' or 'accept'+  | ConvertedToHandle   -- ^ Is now a 'Handle' (via 'socketToHandle'), don't touch+  | Closed              -- ^ Closed was closed by 'close'     deriving (Eq, Show, Typeable)  -----------------------------------------------------------------------------
configure view
@@ -1,11 +1,13 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles.-# Generated by GNU Autoconf 2.69 for Haskell network package 2.3.0.14.+# Generated by GNU Autoconf 2.68 for Haskell network package 2.3.0.14. # # Report bugs to <libraries@haskell.org>. # #-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software+# Foundation, Inc. # # # This configure script is free software; the Free Software Foundation@@ -134,31 +136,6 @@ # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# Use a proper internal environment variable to ensure we don't fall-  # into an infinite loop, continuously re-executing ourselves.-  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then-    _as_can_reexec=no; export _as_can_reexec;-    # We cannot yet assume a decent shell, so we have to provide a-# neutralization value for shells without unset; and this also-# works around shells that cannot unset nonexistent variables.-# Preserve -v and -x to the replacement shell.-BASH_ENV=/dev/null-ENV=/dev/null-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV-case $- in # ((((-  *v*x* | *x*v* ) as_opts=-vx ;;-  *v* ) as_opts=-v ;;-  *x* ) as_opts=-x ;;-  * ) as_opts= ;;-esac-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}-# Admittedly, this is quite paranoid, since all the known shells bail-# out after a failed `exec'.-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2-as_fn_exit 255-  fi-  # We don't want this to propagate to other subprocesses.-          { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :   emulate sh@@ -192,8 +169,7 @@ else   exitcode=1; echo positional parameters were not saved. fi-test x\$exitcode = x0 || exit 1-test -x / || exit 1"+test x\$exitcode = x0 || exit 1"   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&@@ -238,25 +214,21 @@         if test "x$CONFIG_SHELL" != x; then :-  export CONFIG_SHELL-             # We cannot yet assume a decent shell, so we have to provide a-# neutralization value for shells without unset; and this also-# works around shells that cannot unset nonexistent variables.-# Preserve -v and -x to the replacement shell.-BASH_ENV=/dev/null-ENV=/dev/null-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV-case $- in # ((((-  *v*x* | *x*v* ) as_opts=-vx ;;-  *v* ) as_opts=-v ;;-  *x* ) as_opts=-x ;;-  * ) as_opts= ;;-esac-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}-# Admittedly, this is quite paranoid, since all the known shells bail-# out after a failed `exec'.-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2-exit 255+  # We cannot yet assume a decent shell, so we have to provide a+	# neutralization value for shells without unset; and this also+	# works around shells that cannot unset nonexistent variables.+	# Preserve -v and -x to the replacement shell.+	BASH_ENV=/dev/null+	ENV=/dev/null+	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV+	export CONFIG_SHELL+	case $- in # ((((+	  *v*x* | *x*v* ) as_opts=-vx ;;+	  *v* ) as_opts=-v ;;+	  *x* ) as_opts=-x ;;+	  * ) as_opts= ;;+	esac+	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi      if test x$as_have_required = xno; then :@@ -359,14 +331,6 @@   } # as_fn_mkdir_p--# as_fn_executable_p FILE-# ------------------------# Test if FILE is an executable regular file.-as_fn_executable_p ()-{-  test -f "$1" && test -x "$1"-} # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take@@ -488,10 +452,6 @@   chmod +x "$as_me.lineno" ||     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } -  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have-  # already done that, so ensure we don't try to do so again and fall-  # in an infinite loop.  This has already happened in practice.-  _as_can_reexec=no; export _as_can_reexec   # Don't try to exec as it changes $[0], causing all sort of problems   # (the dirname of $[0] is not the place where we might find the   # original and so on.  Autoconf is especially sensitive to this).@@ -526,16 +486,16 @@     # ... but there are two gotchas:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.-    # In both cases, we have to default to `cp -pR'.+    # In both cases, we have to default to `cp -p'.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||-      as_ln_s='cp -pR'+      as_ln_s='cp -p'   elif ln conf$$.file conf$$ 2>/dev/null; then     as_ln_s=ln   else-    as_ln_s='cp -pR'+    as_ln_s='cp -p'   fi else-  as_ln_s='cp -pR'+  as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null@@ -547,8 +507,28 @@   as_mkdir_p=false fi -as_test_x='test -x'-as_executable_p=as_fn_executable_p+if test -x / >/dev/null 2>&1; then+  as_test_x='test -x'+else+  if ls -dL / >/dev/null 2>&1; then+    as_ls_L_option=L+  else+    as_ls_L_option=+  fi+  as_test_x='+    eval sh -c '\''+      if test -d "$1"; then+	test -d "$1/.";+      else+	case $1 in #(+	-*)set "./$1";;+	esac;+	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((+	???[sx]*):;;*)false;;esac;fi+    '\'' sh+  '+fi+as_executable_p=$as_test_x  # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"@@ -1153,6 +1133,8 @@ if test "x$host_alias" != x; then   if test "x$build_alias" = x; then     cross_compiling=maybe+    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.+    If a cross compiler is detected then cross compile mode will be used" >&2   elif test "x$build_alias" != "x$host_alias"; then     cross_compiling=yes   fi@@ -1389,9 +1371,9 @@ if $ac_init_version; then   cat <<\_ACEOF Haskell network package configure 2.3.0.14-generated by GNU Autoconf 2.69+generated by GNU Autoconf 2.68 -Copyright (C) 2012 Free Software Foundation, Inc.+Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF@@ -1668,7 +1650,7 @@ 	 test ! -s conftest.err        } && test -s conftest$ac_exeext && { 	 test "$cross_compiling" = yes ||-	 test -x conftest$ac_exeext+	 $as_test_x conftest$ac_exeext        }; then :   ac_retval=0 else@@ -1861,7 +1843,7 @@ running configure, to aid debugging if configure makes a mistake.  It was created by Haskell network package $as_me 2.3.0.14, which was-generated by GNU Autoconf 2.69.  Invocation command line was+generated by GNU Autoconf 2.68.  Invocation command line was    $ $0 $@ @@ -2366,7 +2348,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     ac_cv_prog_CC="${ac_tool_prefix}gcc"     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5     break 2@@ -2406,7 +2388,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     ac_cv_prog_ac_ct_CC="gcc"     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5     break 2@@ -2459,7 +2441,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     ac_cv_prog_CC="${ac_tool_prefix}cc"     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5     break 2@@ -2500,7 +2482,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then        ac_prog_rejected=yes        continue@@ -2558,7 +2540,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5     break 2@@ -2602,7 +2584,7 @@   IFS=$as_save_IFS   test -z "$as_dir" && as_dir=.     for ac_exec_ext in '' $ac_executable_extensions; do-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then     ac_cv_prog_ac_ct_CC="$ac_prog"     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5     break 2@@ -3048,7 +3030,8 @@ /* end confdefs.h.  */ #include <stdarg.h> #include <stdio.h>-struct stat;+#include <sys/types.h>+#include <sys/stat.h> /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int);@@ -3146,11 +3129,11 @@ int main () {-+/* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus-  /* Ultrix mips cc rejects this sort of thing.  */+  /* Ultrix mips cc rejects this.  */   typedef int charset[2];-  const charset cs = { 0, 0 };+  const charset cs;   /* SunOS 4.1.1 cc rejects this.  */   char const *const *pcpcc;   char **ppc;@@ -3167,9 +3150,8 @@   ++pcpcc;   ppc = (char**) pcpcc;   pcpcc = (char const *const *) ppc;-  { /* SCO 3.2v4 cc rejects this sort of thing.  */-    char tx;-    char *t = &tx;+  { /* SCO 3.2v4 cc rejects this.  */+    char *t;     char const *s = 0 ? (char *) 0 : (char const *) 0;      *t++ = 0;@@ -3185,10 +3167,10 @@     iptr p = 0;     ++p;   }-  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying+  { /* AIX XL C 1.02.0.0 rejects this saying        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */-    struct s { int j; const int *ap[3]; } bx;-    struct s *b = &bx; b->j = 5;+    struct s { int j; const int *ap[3]; };+    struct s *b; b->j = 5;   }   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */     const int foo = 10;@@ -3371,7 +3353,7 @@     for ac_prog in grep ggrep; do     for ac_exec_ext in '' $ac_executable_extensions; do       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"-      as_fn_executable_p "$ac_path_GREP" || continue+      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found.   # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in@@ -3437,7 +3419,7 @@     for ac_prog in egrep; do     for ac_exec_ext in '' $ac_executable_extensions; do       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"-      as_fn_executable_p "$ac_path_EGREP" || continue+      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found.   # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in@@ -3796,6 +3778,16 @@ $as_echo "yes" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeereid in unistd.h" >&5+$as_echo_n "checking for getpeereid in unistd.h... " >&6; }+ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"+if test "x$ac_cv_func_getpeereid" = xyes; then :++$as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h++fi++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5 $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; } if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :@@ -3966,6 +3958,38 @@ _ACEOF  +ac_fn_c_check_decl "$LINENO" "IPPROTO_IP" "ac_cv_have_decl_IPPROTO_IP" "$ac_includes_default"+if test "x$ac_cv_have_decl_IPPROTO_IP" = xyes; then :+  ac_have_decl=1+else+  ac_have_decl=0+fi++cat >>confdefs.h <<_ACEOF+#define HAVE_DECL_IPPROTO_IP $ac_have_decl+_ACEOF+ac_fn_c_check_decl "$LINENO" "IPPROTO_TCP" "ac_cv_have_decl_IPPROTO_TCP" "$ac_includes_default"+if test "x$ac_cv_have_decl_IPPROTO_TCP" = xyes; then :+  ac_have_decl=1+else+  ac_have_decl=0+fi++cat >>confdefs.h <<_ACEOF+#define HAVE_DECL_IPPROTO_TCP $ac_have_decl+_ACEOF+ac_fn_c_check_decl "$LINENO" "IPPROTO_IPV6" "ac_cv_have_decl_IPPROTO_IPV6" "$ac_includes_default"+if test "x$ac_cv_have_decl_IPPROTO_IPV6" = xyes; then :+  ac_have_decl=1+else+  ac_have_decl=0+fi++cat >>confdefs.h <<_ACEOF+#define HAVE_DECL_IPPROTO_IPV6 $ac_have_decl+_ACEOF++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in sys/sendfile.h" >&5 $as_echo_n "checking for sendfile in sys/sendfile.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext@@ -4459,16 +4483,16 @@     # ... but there are two gotchas:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.-    # In both cases, we have to default to `cp -pR'.+    # In both cases, we have to default to `cp -p'.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||-      as_ln_s='cp -pR'+      as_ln_s='cp -p'   elif ln conf$$.file conf$$ 2>/dev/null; then     as_ln_s=ln   else-    as_ln_s='cp -pR'+    as_ln_s='cp -p'   fi else-  as_ln_s='cp -pR'+  as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null@@ -4528,16 +4552,28 @@   as_mkdir_p=false fi --# as_fn_executable_p FILE-# ------------------------# Test if FILE is an executable regular file.-as_fn_executable_p ()-{-  test -f "$1" && test -x "$1"-} # as_fn_executable_p-as_test_x='test -x'-as_executable_p=as_fn_executable_p+if test -x / >/dev/null 2>&1; then+  as_test_x='test -x'+else+  if ls -dL / >/dev/null 2>&1; then+    as_ls_L_option=L+  else+    as_ls_L_option=+  fi+  as_test_x='+    eval sh -c '\''+      if test -d "$1"; then+	test -d "$1/.";+      else+	case $1 in #(+	-*)set "./$1";;+	esac;+	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((+	???[sx]*):;;*)false;;esac;fi+    '\'' sh+  '+fi+as_executable_p=$as_test_x  # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"@@ -4559,7 +4595,7 @@ # values after options handling. ac_log=" This file was extended by Haskell network package $as_me 2.3.0.14, which was-generated by GNU Autoconf 2.69.  Invocation command line was+generated by GNU Autoconf 2.68.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES   CONFIG_HEADERS  = $CONFIG_HEADERS@@ -4621,10 +4657,10 @@ ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Haskell network package config.status 2.3.0.14-configured by $0, generated by GNU Autoconf 2.69,+configured by $0, generated by GNU Autoconf 2.68,   with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc.+Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -4712,7 +4748,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then-  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion+  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion   shift   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6   CONFIG_SHELL='$SHELL'
configure.ac view
@@ -146,6 +146,11 @@ dnl ------------------------------------------------------- AC_CHECK_DECLS([IPV6_V6ONLY]) +dnl -------------------------------------------------------+dnl * test for IPPROTO_* macros/constants+dnl -------------------------------------------------------+AC_CHECK_DECLS([IPPROTO_IP, IPPROTO_TCP, IPPROTO_IPV6])+ dnl -------------------------------------------------- dnl * test for Linux sendfile(2) dnl --------------------------------------------------
include/HsNet.h view
@@ -23,7 +23,7 @@ #ifndef INLINE # if defined(_MSC_VER) #  define INLINE extern __inline-# elif defined(__GNUC__)+# elif defined(__GNUC_GNU_INLINE__) #  define INLINE extern inline # else #  define INLINE inline
include/HsNetworkConfig.h view
@@ -2,13 +2,13 @@ /* include/HsNetworkConfig.h.in.  Generated from configure.ac by autoheader.  */  /* Define to 1 if you have the `accept4' function. */-/* #undef HAVE_ACCEPT4 */+#define HAVE_ACCEPT4 1  /* Define to 1 if you have the <arpa/inet.h> header file. */ #define HAVE_ARPA_INET_H 1  /* Define to 1 if you have a BSDish sendfile(2) implementation. */-#define HAVE_BSD_SENDFILE 1+/* #undef HAVE_BSD_SENDFILE */  /* Define to 1 if you have the declaration of `AI_ADDRCONFIG', and to 0 if you    don't. */@@ -26,6 +26,18 @@    don't. */ #define HAVE_DECL_AI_V4MAPPED 1 +/* Define to 1 if you have the declaration of `IPPROTO_IP', and to 0 if you+   don't. */+#define HAVE_DECL_IPPROTO_IP 1++/* Define to 1 if you have the declaration of `IPPROTO_IPV6', and to 0 if you+   don't. */+#define HAVE_DECL_IPPROTO_IPV6 1++/* Define to 1 if you have the declaration of `IPPROTO_TCP', and to 0 if you+   don't. */+#define HAVE_DECL_IPPROTO_TCP 1+ /* Define to 1 if you have the declaration of `IPV6_V6ONLY', and to 0 if you    don't. */ #define HAVE_DECL_IPV6_V6ONLY 1@@ -42,6 +54,9 @@ /* Define to 1 if you have the `gethostent' function. */ #define HAVE_GETHOSTENT 1 +/* Define to 1 if you have getpeereid. */+/* #undef HAVE_GETPEEREID */+ /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 @@ -55,7 +70,7 @@ #define HAVE_LIMITS_H 1  /* Define to 1 if you have a Linux sendfile(2) implementation. */-/* #undef HAVE_LINUX_SENDFILE */+#define HAVE_LINUX_SENDFILE 1  /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1@@ -91,10 +106,10 @@ #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1  /* Define to 1 if `sa_len' is a member of `struct sockaddr'. */-#define HAVE_STRUCT_SOCKADDR_SA_LEN 1+/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */  /* Define to 1 if you have both SO_PEERCRED and struct ucred. */-/* #undef HAVE_STRUCT_UCRED */+#define HAVE_STRUCT_UCRED 1  /* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1
include/HsNetworkConfig.h.in view
@@ -25,6 +25,18 @@    don't. */ #undef HAVE_DECL_AI_V4MAPPED +/* Define to 1 if you have the declaration of `IPPROTO_IP', and to 0 if you+   don't. */+#undef HAVE_DECL_IPPROTO_IP++/* Define to 1 if you have the declaration of `IPPROTO_IPV6', and to 0 if you+   don't. */+#undef HAVE_DECL_IPPROTO_IPV6++/* Define to 1 if you have the declaration of `IPPROTO_TCP', and to 0 if you+   don't. */+#undef HAVE_DECL_IPPROTO_TCP+ /* Define to 1 if you have the declaration of `IPV6_V6ONLY', and to 0 if you    don't. */ #undef HAVE_DECL_IPV6_V6ONLY@@ -40,6 +52,9 @@  /* Define to 1 if you have the `gethostent' function. */ #undef HAVE_GETHOSTENT++/* Define to 1 if you have getpeereid. */+#undef HAVE_GETPEEREID  /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H
network.cabal view
@@ -1,5 +1,5 @@ name:           network-version:        2.4.2.0+version:        2.4.2.1 license:        BSD3 license-file:   LICENSE maintainer:     Johan Tibell <johan.tibell@gmail.com>