Ticket #2687: IOKit-VERSION-patch.diff

File IOKit-VERSION-patch.diff, 607 bytes (added by pesco@…, 20 years ago)

ATTACHMENT: IOKit-VERSION-patch.diff

  • scsi-mac-iokit.c

    diff -Naur libscg/scsi-mac-iokit.c libscg-patched/scsi-mac-iokit.c
    old new  
    5555#include <Carbon/Carbon.h>
    5656#include <IOKit/IOKitLib.h>
    5757#include <IOKit/IOCFPlugIn.h>
     58
     59/* VERSION is used as an identifier somewhere in the Apple headers. */
     60#define AVOID_COLLISION_SAVE_VERSION VERSION
     61#undef VERSION
    5862#include <IOKit/scsi-commands/SCSITaskLib.h>
     63#define VERSION AVOID_COLLISION_SAVE_VERSION
     64#undef AVOID_COLLISION_SAVE_VERSION
     65
    5966#include <mach/mach_error.h>
    6067
    6168struct scg_local {