diff options
author | jenglish <jenglish@flightlab.com> | 2008-02-28 20:14:06 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2008-02-28 20:14:06 (GMT) |
commit | e3731492820cee09a934e7a1305b79b6988b7450 (patch) | |
tree | c4223d0df8163c3ddaa0f6453bcd43e56995d01b /unix/tclUnixCompat.c | |
parent | 6e9187684c687eab654ee37f1d4a9aa9caff97a2 (diff) | |
download | tcl-e3731492820cee09a934e7a1305b79b6988b7450.zip tcl-e3731492820cee09a934e7a1305b79b6988b7450.tar.gz tcl-e3731492820cee09a934e7a1305b79b6988b7450.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 */ + /* *--------------------------------------------------------------------------- * |