mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 05:03:07 +00:00
fixed windows compile problem
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
** lfs.touch (filepath [, atime [, mtime]])
|
** lfs.touch (filepath [, atime [, mtime]])
|
||||||
** lfs.unlock (fh)
|
** lfs.unlock (fh)
|
||||||
**
|
**
|
||||||
** $Id: lfs.c,v 1.48 2008/02/18 03:13:50 mascarenhas Exp $
|
** $Id: lfs.c,v 1.49 2008/02/19 20:08:23 mascarenhas Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -530,7 +530,9 @@ static void push_st_blksize (lua_State *L, struct stat *info) {
|
|||||||
#endif
|
#endif
|
||||||
static void push_invalid (lua_State *L, struct stat *info) {
|
static void push_invalid (lua_State *L, struct stat *info) {
|
||||||
luaL_error(L, "invalid attribute name");
|
luaL_error(L, "invalid attribute name");
|
||||||
|
#ifndef _WIN32
|
||||||
info->st_blksize = 0; /* never reached */
|
info->st_blksize = 0; /* never reached */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void (*_push_function) (lua_State *L, struct stat *info);
|
typedef void (*_push_function) (lua_State *L, struct stat *info);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
** LuaFileSystem
|
** LuaFileSystem
|
||||||
** Copyright Kepler Project 2003 (http://www.keplerproject.org/luafilesystem)
|
** Copyright Kepler Project 2003 (http://www.keplerproject.org/luafilesystem)
|
||||||
**
|
**
|
||||||
** $Id: lfs.h,v 1.4 2008/02/11 22:42:21 carregal Exp $
|
** $Id: lfs.h,v 1.5 2008/02/19 20:08:23 mascarenhas Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Define 'chdir' for systems that do not implement it */
|
/* Define 'chdir' for systems that do not implement it */
|
||||||
@@ -13,4 +13,5 @@
|
|||||||
#define chdir_error strerror(errno)
|
#define chdir_error strerror(errno)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int luaopen_lfs (lua_State *L);
|
int luaopen_lfs (lua_State *L);
|
||||||
|
|||||||
Reference in New Issue
Block a user