landonf/simlaunch — pull request #11 by mootoh (2012-07-18 01:36:57+00:00)
Title: Fix for Snow Leopard

Noticed Simulator Bundler does not work on Snow Leopard, because

* a) dlsym(RTLD_DEFAULT, "main") returns NULL,
* b) strnlen(3) is not available on Snow Leopard.

I made NXGetLocalArchInfo() as fallback for a), and added a naive implementation of strnlen for b).