Index: src/d8.cc |
=================================================================== |
--- src/d8.cc (revision 810) |
+++ src/d8.cc (working copy) |
@@ -26,6 +26,8 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+#include <stdlib.h> |
+ |
#include "d8.h" |
#include "debug.h" |
#include "api.h" |
@@ -77,7 +79,7 @@ |
char buffer[kBufferSize]; |
printf("%s", prompt); |
char* str = fgets(buffer, kBufferSize, stdin); |
- return i::SmartPointer<char>(str ? i::OS::StrDup(str) : str); |
+ return i::SmartPointer<char>(str ? i::StrDup(str) : str); |
Feng Qian
2008/11/20 23:33:28
The fix looks good to me, but it does not resolve
|
} |