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
- foundin changed to: "obsolete: 8.5.13"
- 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?
- login: "nijtmans"
- mimetype: "text/plain"
- subsystem changed to: "52. Portability Support"
- username: "nijtmans"