-#line 5977 "configure"
+#line 6007 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
XOpenDisplay()
; return 0; }
EOF
-if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
if test "$USE_TCL"; then
echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
-echo "configure:6026: checking for tclConfig.sh" >&5
+echo "configure:6056: checking for tclConfig.sh" >&5
library_dirs="$LIBRARY_DIRS /usr/lib"
TCL_CONFIG_SH=
for dir in $library_dirs; do
if test "$USE_TCL"; then
echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
-echo "configure:6055: checking for tkConfig.sh" >&5
+echo "configure:6085: checking for tkConfig.sh" >&5
library_dirs="$LIBRARY_DIRS /usr/lib"
TK_CONFIG_SH=
for dir in $library_dirs; do
PWD_INCDIR=no
ac_safe=`echo "pwd.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for pwd.h""... $ac_c" 1>&6
-echo "configure:6091: checking for pwd.h" >&5
+echo "configure:6121: checking for pwd.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
-#line 6096 "configure"
+#line 6126 "configure"
#include "confdefs.h"
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
AC_HEADER_TIME
AC_STRUCT_TM
+AC_MSG_CHECKING(for type of last arg to accept)
+AC_TRY_COMPILE([#include
+#include
+#include
+],
+[int a = accept(1, (struct sockaddr *) 0, (size_t *) 0);],
+[AC_DEFINE(SOCKET_SIZE_TYPE, size_t) AC_MSG_RESULT(size_t)],
+[AC_DEFINE(SOCKET_SIZE_TYPE, int) AC_MSG_RESULT(int)])
+
dnl Check for any "odd" conditions
AC_MSG_CHECKING(for int timezone)
AC_TRY_LINK([#include ],
/* Set to 1 if type "long long int" works and is 64 bits */
#undef HAVE_LONG_LONG_INT_64
+/* Define as the base type of the last arg to accept */
+#undef SOCKET_SIZE_TYPE
+
/*
* Code below this point should not require changes
*/
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.84 1998/10/01 01:40:19 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.85 1998/10/13 20:44:49 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
struct hostent *hp;
StartupPacket sp;
AuthRequest areq;
- int laddrlen;
+ SOCKET_SIZE_TYPE laddrlen;
int portno,
family;
char beresp;