commit b035528c1c44f4271993e623125b06684d9529a4
Author: Stephan Witt <[email protected]>
Date: Mon Jul 4 08:33:03 2016 +0200
Fix missing include for malloc prototype after header cleanup in change
489dca71cd99bbc78780fa40311a2eb042c0320e
---
src/support/AppleScriptProxy.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/support/AppleScriptProxy.cpp b/src/support/AppleScriptProxy.cpp
index 8ff1d76..89a6eef 100644
--- a/src/support/AppleScriptProxy.cpp
+++ b/src/support/AppleScriptProxy.cpp
@@ -22,6 +22,8 @@
#include "support/docstring.h"
#include "support/debug.h"
+#include <stdlib.h>
+
using namespace std;
using namespace lyx;
@@ -33,7 +35,7 @@ extern "C" LyXFunctionResult
applescript_execute_command(const char *cmd, const
theApp()->dispatch(fr, dr);
string const rval = to_utf8(dr.message());
- char *cstr =(char*) malloc((rval.size()+1)*sizeof(rval[0]));
+ char *cstr = (char*) malloc((rval.size()+1)*sizeof(rval[0]));
strcpy (cstr, rval.c_str());
// Returns the result