Skip to Content.
Sympa Menu

freetds - Re: login.c:176: `FIONBIO' undeclared

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Christian Wolf <Christian.Wolf AT medis.de>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: login.c:176: `FIONBIO' undeclared
  • Date: Mon, 20 Mar 2000 17:37:17 +0100 (MET)


On Mon, 20 Mar 2000, Brian Bruns wrote:

> Long time no see! That is part of the changes inline.net submitted to go
> along with their ODBC driver. Let me reasearch it a bit. Perhaps Solaris
> needs an extra header file.

Yes, #include <sys/filio.h> fixes the problem, but I'm not sure, if it will
work. You migh better use somethink like

fcntl( sd, F_SETFL, FNONBLOCK | FASYNC )

instead of ioctl( sd, FIONBIO, ... ). This will work on Solaris 2.x,
FreeBSD and Linux.

Regards,
Chris

--
Christian Wolf; <Christian.Wolf AT MedIS.DE>; Tel.: +49-40-76696-306 /\
MedIS - Medizinische Informations- und Steuerungssysteme GmbH /\/\
Grossmoorbogen 25, 21079 Hamburg /\/\/\
________________________________________________________________/\/\/\/\





Archive powered by MHonArc 2.6.24.

Top of Page