#33672: mosh: error: ‘posix_memalign’ was not declared in this scope -----------------------------+---------------------------------------------- Reporter: sondy@… | Owner: quentin@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: leopard tiger | Port: mosh -----------------------------+---------------------------------------------- Comment(by quentin@…): As a quick test, try replacing the failing line in crypto.cc: {{{ if( (0 != posix_memalign( (void **)&ptr, 16, len )) || (ptr == NULL) ) { }}} with {{{ if( ! (ptr = malloc(len)) ) { }}} I'm worried there will be other build failures due to Leopard's gcc 4.0, even if we fix this missing function. -- Ticket URL: <https://trac.macports.org/ticket/33672#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS