Ticket #29403: nqc-64bit.diff

File nqc-64bit.diff, 1.8 KB (added by sethk@…, 13 years ago)

Patch

  • lang/nqc/files/patch-rcxlib:RCX_USBTowerPipe_osx.cpp.diff

     
     1--- rcxlib/RCX_USBTowerPipe_osx.cpp.orig        2011-05-08 18:40:04.000000000 -0700
     2+++ rcxlib/RCX_USBTowerPipe_osx.cpp     2011-05-08 18:40:07.000000000 -0700
     3@@ -90,7 +90,7 @@
     4        };
     5 
     6        static void ReadCompletionGlue(void *refCon, IOReturn result, void *arg0);
     7-       void            ReadCompletion(IOReturn result, UInt32 n);
     8+       void            ReadCompletion(IOReturn result, uintptr_t n);
     9        void            StartRead();
     10        void            ConsumeInBuffer();
     11        void            SetTimeout(long timeout_ms);
     12@@ -288,7 +288,7 @@
     13 }
     14 
     15 
     16-void RCX_USBTowerPipe_osx::ReadCompletion(IOReturn result, UInt32 n)
     17+void RCX_USBTowerPipe_osx::ReadCompletion(IOReturn result, uintptr_t n)
     18 {
     19        if (result == kIOReturnAborted) return;
     20 
     21@@ -328,7 +328,7 @@
     22 void RCX_USBTowerPipe_osx::ReadCompletionGlue(void *refCon, IOReturn result, void *arg0)
     23 {
     24        RCX_USBTowerPipe_osx* pipe = (RCX_USBTowerPipe_osx*)refCon;
     25-       pipe->ReadCompletion(result, (UInt32)arg0);
     26+       pipe->ReadCompletion(result, (uintptr_t)arg0);
     27 }
     28 
     29 
  • lang/nqc/Portfile

     
    1717extract.suffix          .tgz
    1818extract.mkdir           yes
    1919checksums               sha1 1de6543cc5152f6dacf375aea2974c09e5fe0ffa
    20 patchfiles              patch-Makefile.diff
     20patchfiles              patch-Makefile.diff patch-rcxlib:RCX_USBTowerPipe_osx.cpp.diff
    2121
    2222configure {
    2323    reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Makefile