Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e77ed766a7f5434e3eebbd7161c8b93dca083a92
Ticket: 1903339fffffffffffffffffffffffffffffffff
ifdef reduction - USE_FIONBIO
User & Date: jenglish on 2008-02-28 02:52:35
Changes

  1. icomment:
    
    
    File Added - 268317: 0002-Reduce-scope-of-sys-filio.h-and-sys-ioctl.h.patch
    
    Logged In: YES 
    user_id=68433
    Originator: YES
    
    With that out of the way, the <sys/ioctl.h> and <sys/filio.h> #includes ("for FIONBIO") can be moved out of unix/tclUnixPort.h into unix/tclUnixCompat.c.  
    
    And with *that* out of the way, the comment at the top of unix/tclUnixChan.c:
    
    /*
     * sys/ioctl.h has already been included by tclPort.h. Including termios.h or
     * termio.h causes a bunch of warning messages because some duplicate (but not
     * contradictory) #defines exist in termios.h and/or termio.h
     */
    
    becomes inoperative and can be removed, along with the following chain of #undef's.
    
    (Archaeology: this bit first appeared in the Tcl 8.0 release (1997-08-12); it is not clear on which platform the conflicting #includes were causing a problem.)
    
    sys/ioctl.h is re-#included later on, along with termios.h, in the -DUSE_TERMIOS branch, which is the most common configuration, and there don't seem to be any reports about conflicts recently.
    File Added: 0002-Reduce-scope-of-sys-filio.h-and-sys-ioctl.h.patch
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"