cocos2d/cocos2d-x — pull request #1991 by SevInf (2013-02-18 07:15:59+00:00)
Title: Make ScriptingCore.cpp compile with C++11 on iOS

In my current project, I need to use both JS Bindings and C++11 features.
When flags -stdlib=libc++ -std=c++11 are set, iOS compilation fails because of write, read, and close functions are part of the unistd.h header file and its not included in ScriptingCore.cpp. Including it won't break compilation with default settings (tested on iOS and Android), but allow to compile project on iOS using C+11.