Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 77fccdf7f22afb53cabfa185bf634bb5a251b8d8
Ticket: 3598300fffffffffffffffffffffffffffffffff
unix: tcl.h does not include sys/stat.h
User & Date: nijtmans on 2012-12-25 19:16:44
Changes

  1. foundin changed to: "obsolete: 8.5.13"
  2. icomment:
    > Jan, any comment on the side-effects you feared, so that you didn't
    > generalize ?
    Well, that change was for fixing a compiler warming with mingw, not
    for cygwin, but I agree with your analysis. It would be good to
    include sys/stat.h before tcl.h. The problem with this is
    the compat/*.h files, which currently need tcl.h to be
    included first. On cygwin/linux/solaris those are not used,
    so the move would be safe. But on older systems .....
    
    Another remark: The inclusion order didn't change
    between Tcl 8.5 and 8.6 (I can see in Makefile.tcl
    that the error occurred in 8.6, but I am assuming
    the same 'bug' is in 8.5 as well).
    
    The best solution here might be to move the
    sys/stat.h include from tcl*Port.h to tclInt.h.
    See:
       <http://core.tcl.tk/tcl/info/02a51cbb69>
    That has the least probability to break
    on any other platform.
    
    rofl0r, Alex, would that work for you? Any
    problems you can see with this change?
    
    
  3. login: "nijtmans"
  4. mimetype: "text/plain"
  5. subsystem changed to: "52. Portability Support"
  6. username: "nijtmans"