freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Mark Schaal <mark AT champ.tstonramp.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: Possible FIONBIO patch
- Date: Thu, 1 Jun 2000 14:39:16 -0700 (PDT)
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
-
Possible FIONBIO patch,
Mark Schaal, 06/01/2000
- <Possible follow-up(s)>
- Re: Possible FIONBIO patch, Martin Spott, 06/01/2000
- Re: Possible FIONBIO patch, camber, 06/04/2000
- Re: Possible FIONBIO patch, Martin Spott, 06/06/2000
Archive powered by MHonArc 2.6.24.