Ticket #44898: tiger-undefined-_CS_DARWIN_USER_-macros.patch

File tiger-undefined-_CS_DARWIN_USER_-macros.patch, 622 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago)

Patch to over the in Tiger undefined _CS_DARWIN_USER_TEMP_DIR and _CS_DARWIN_USER_CACHE_DIR macros

  • lib/Support/PathV2.cpp

    old new  
    498498
    499499#ifdef __APPLE__
    500500  // On Darwin, use DARWIN_USER_TEMP_DIR or DARWIN_USER_CACHE_DIR.
     501  // ...which are not defined in Tiger and earlier!
     502#ifndef _CS_DARWIN_USER_TEMP_DIR
     503#define _CS_DARWIN_USER_TEMP_DIR 65537
     504#endif
     505#ifndef _CS_DARWIN_USER_CACHE_DIR
     506#define _CS_DARWIN_USER_CACHE_DIR 65538
     507#endif
     508
    501509  int ConfName = erasedOnReboot? _CS_DARWIN_USER_TEMP_DIR
    502510                               : _CS_DARWIN_USER_CACHE_DIR;
    503511  size_t ConfLen = confstr(ConfName, 0, 0);