kripken/emscripten — pull request #162 by jterrace (2012-01-05 18:02:49+00:00)
Title: Endianness, cross-compiling, and missing headers

* Adds missing pthread function ``pthread_getattr_np``
* Adds missing ``sys/termios.h``
* Adds missing ``sys/ttydefaults.h``
* Changes shared.py to set ``HOST_CC``, ``HOST_CXX``, ``HOST_CFLAGS`` and ``HOST_CXXFLAGS`` so that cross-compiling works.
* Adds additional definitions to endian.h that should be there

*Note: did not run test suite on this, so submitting to incoming*