diff options
author | jenglish@flightlab.com <jenglish> | 2008-02-28 20:14:06 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2008-02-28 20:14:06 (GMT) |
commit | 7bea3e555c4589b1ed5cbc74856c4154aee558c7 (patch) | |
tree | c4223d0df8163c3ddaa0f6453bcd43e56995d01b /unix/tclUnixCompat.c | |
parent | 1442bf11852bdc6fe8b95dc7d8255061b7d2ce23 (diff) | |
download | tcl-7bea3e555c4589b1ed5cbc74856c4154aee558c7.zip tcl-7bea3e555c4589b1ed5cbc74856c4154aee558c7.tar.gz tcl-7bea3e555c4589b1ed5cbc74856c4154aee558c7.tar.bz2 |
Reduce scope of <sys/filio.h> and <sys/ioctl.h> #includes.
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r-- | unix/tclUnixCompat.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index c26bef5..3123ac0 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -6,7 +6,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixCompat.c,v 1.14 2008/02/28 20:12:09 jenglish Exp $ + * RCS: @(#) $Id: tclUnixCompat.c,v 1.15 2008/02/28 20:14:12 jenglish Exp $ * */ @@ -16,6 +16,17 @@ #include <errno.h> #include <string.h> +/* See also: SC_BLOCKING_STYLE in unix/tcl.m4 + */ +#ifdef USE_FIONBIO +# ifdef HAVE_SYS_FILIO_H +# include <sys/filio.h> /* For FIONBIO. */ +# endif +# ifdef HAVE_SYS_IOCTL_H +# include <sys/ioctl.h> +# endif +#endif /* USE_FIONBIO */ + /* *--------------------------------------------------------------------------- * |