Ticket #31158: patch-dyld-info-compat.h.diff

File patch-dyld-info-compat.h.diff, 1.3 KB (added by 0xced (Cédric Luthi), 13 years ago)
  • dyld-info-compat.h

     
    22
    33// This is taken from loader.h on 10.7, so that I can still compile for 10.6.
    44
    5 #define LC_LOAD_UPWARD_DYLIB (0x23 | LC_REQ_DYLD) /* load upward dylib */
    6 #define LC_VERSION_MIN_MACOSX 0x24   /* build for MacOSX min OS version */
    7 #define LC_VERSION_MIN_IPHONEOS 0x25 /* build for iPhoneOS min OS version */
    8 #define LC_FUNCTION_STARTS 0x26 /* compressed table of function start addresses */
    9 #define LC_DYLD_ENVIRONMENT 0x27 /* string for dyld to treat like environment variable */
    10 
     5#ifndef LC_VERSION_MIN_MACOSX
    116/*
    127 * The version_min_command contains the min OS version on which this
    138 * binary was built to run.
     
    1813    uint32_t    version;        /* X.Y.Z is encoded in nibbles xxxx.yy.zz */
    1914    uint32_t    reserved;       /* zero */
    2015};
     16#endif
     17
     18#define LC_LOAD_UPWARD_DYLIB (0x23 | LC_REQ_DYLD) /* load upward dylib */
     19#define LC_VERSION_MIN_MACOSX 0x24   /* build for MacOSX min OS version */
     20#define LC_VERSION_MIN_IPHONEOS 0x25 /* build for iPhoneOS min OS version */
     21#define LC_FUNCTION_STARTS 0x26 /* compressed table of function start addresses */
     22#define LC_DYLD_ENVIRONMENT 0x27 /* string for dyld to treat like environment variable */
    2123
    2224#endif