diff options
author | starkos <none@none> | 2009-01-08 22:33:14 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-01-08 22:33:14 +0300 |
commit | a72bcc0ffaf7b9674f7be3e9091ac4f1bec7ddf9 (patch) | |
tree | ba8fa3ca215faf3d5444608ad9245bf6600995a6 /src/host/os_copyfile.c | |
parent | 9be9bb1eb6bc84ad549e793e136cb4127ced9e2f (diff) |
Fixed os_copyfile() for Posix
Diffstat (limited to 'src/host/os_copyfile.c')
-rw-r--r-- | src/host/os_copyfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/os_copyfile.c b/src/host/os_copyfile.c index 6ec0a46..b15d600 100644 --- a/src/host/os_copyfile.c +++ b/src/host/os_copyfile.c @@ -4,9 +4,9 @@ * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ +#include <stdlib.h> #include "premake.h" - int os_copyfile(lua_State* L) { int z; @@ -16,7 +16,7 @@ int os_copyfile(lua_State* L) #if PLATFORM_WINDOWS z = CopyFile(src, dst, FALSE); #else - luaL_pushfstring(L, "cp %s %s", src, dst); + lua_pushfstring(L, "cp %s %s", src, dst); z = (system(lua_tostring(L, -1)) == 0); #endif |