Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bc24856b4998ffb32c947f76a6df7a98686565c0
Ticket: 664358ffffffffffffffffffffffffffffffffff
compat/unistd.h loads over unistd.h on AIX
User & Date: nobody on 2003-01-08 12:49:30
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The compat/unistd.h is protected against double loading
    with a construct
    
    #ifndef _UNISTD
    #define _UNISTD
    ....
    #endif
    
    AIX xlC (Visual Age for C) uses the same mechanism 
    but
    a different identifier: _H_UNISTD
    
    So I'd propose to use this as well nested into the original
    construct to protect from loading unistd.h 
    
    #ifndef _UNISTD
    #define _UNISTD
    #ifndef _H_UNISTD
    #define _H_UNISTD
    ....
    #endif /* _H_UNISTD */
    #endif /* _UNISTD */
    
    or alternatively if no compatibility problems come up with 
    that use
    
    #if !defined(_UNISTD) && !defined(_H_UNISTD)
    #define _H_UNISTD
    #define _UNISTD
    ....
    #endif
    
    Don't know which is better.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "compat/unistd.h loads over unistd.h on AIX"
  11. type changed to: "Bug"