Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 14c173270d215086c4dda0bdd3f73cbe8e2cace2
Ticket: 3598300fffffffffffffffffffffffffffffffff
unix: tcl.h does not include sys/stat.h
User & Date: roflz on 2012-12-25 08:19:39
Changes

  1. icomment:
    i mean this part here
    
    #elif defined(HAVE_STRUCT_STAT64)
    #   define TclOSstat            stat64
    #   define TclOSlstat           lstat64
    #else
    #   define TclOSstat            stat
    #   define TclOSlstat           lstat
    #endif
    
    the inclusion of stat.h comes later
    so whatever this tries to do, it doesn't see the stat64 macro and thus may fail.
    it is probably not related to the error i'm seeing.
    
    however it is very likely that the problem we're facing here has the same cause:
    tcl.h gets included before <sys/stat.h>, so the macro doesnt get expanded
    and the compiler fails to find the struct stat64.
    
    
  2. login: "roflz"
  3. mimetype: "text/plain"
  4. username: "roflz"