Ticket #29835: patch-src-cxx-cxxsupport-arr.h.diff

File patch-src-cxx-cxxsupport-arr.h.diff, 428 bytes (added by lsinger@…, 13 years ago)

Patch file (to go in the port's files/ directory)

  • src/cxx/cxxsupport/arr.h

    old new  
    5454      using namespace std;
    5555      if (sz==0) return 0;
    5656      void *res;
    57       planck_assert(posix_memalign(&res,align,sz*sizeof(T))==0,
     57      planck_assert((res = valloc(sz*sizeof(T))),
    5858        "error in posix_memalign()");
    5959      return static_cast<T *>(res);
    6060      }