Skip to Content.
Sympa Menu

freetds - Re: Possible FIONBIO patch

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Possible FIONBIO patch
  • Date: Sun, 4 Jun 2000 08:52:28 -0400 (EDT)


Mark,

I've merge this patch in. Let me know how it works folks.

Brian

On Thu, 1 Jun 2000, Mark Schaal wrote:

>
> I think the below change to configure.in (and consequent change
> to configure) should take care of the FIONBIO problem. It tests
> out on my Solaris2.7_x86. I don't have a convenient Linux box
> networked at the moment to check against (maybe next week), but
> based on header files it looks okay. I have to say autoconf takes
> a bit of time to get familiar with. I might do some cleanup work
> later on the configure.in to use less sh and more autoconf, though
> I doubt the sh constructs cause any problems.
>
> History:
> In order to support a connection timeout, we need to use
> non-blocking I/O. For winsock compatibility we use
> ioctl() with FIONBIO. Solaris says FIONBIO is a BSDism and
> has separated those out. Thus Solaris needs a -DBSD_COMP to
> include it (with the caveat that we then can't use termio.h
> without conflicts).
>
>
> *** configure.in.orig Wed May 31 15:15:21 2000
> --- configure.in Thu Jun 1 13:48:32 2000
> ***************
> *** 7,12 ****
> --- 7,13 ----
>
> dnl Checks for programs.
> AC_PROG_CC
> + AC_PROG_CPP
> AC_PROG_MAKE_SET
> AC_PROG_INSTALL
> AC_PROG_RANLIB
> ***************
> *** 22,27 ****
> --- 23,48 ----
>
> dnl Checks for typedefs, structures, and compiler characteristics.
> AC_STRUCT_TM
> + dnl Solaris needs -DBSD_COMP to get FIONBIO defined
> + AC_MSG_CHECKING(is FIONBIO defined)
> + AC_EGREP_CPP(yes,
> + [#include <sys/ioctl.h>
> + #ifdef FIONBIO
> + yes
> + #endif
> + ],
> + AC_MSG_RESULT(yes),
> + [ AC_EGREP_CPP(yes,
> + [#define BSD_COMP
> + #include <sys/ioctl.h>
> + #ifdef FIONBIO
> + yes
> + #endif
> + ],
> + AC_DEFINE(BSD_COMP) AC_MSG_RESULT(need -DBSD_COMP),
> + AC_MSG_RESULT(no))
> + ])
> +
> OLDCFLAGS="$CFLAGS"
> CFLAGS=""
> AC_C_BIGENDIAN
>
> --
> Mark J. Schaal Phone: (909)
> 620-7724
> TST On Ramp Fax: (909) 620-8174
> System Administrator E-Mail: mark AT tstonramp.com
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page