diff options
author | mascarenhas <mascarenhas> | 2008-02-19 20:08:23 +0000 |
---|---|---|
committer | mascarenhas <mascarenhas> | 2008-02-19 20:08:23 +0000 |
commit | c5bfbb1bd28daa49a0d6c136052aea109f314f85 (patch) | |
tree | fede8da65aeaaab97e79499cdd3df99b8220db81 /src/lfs.c | |
parent | c2e720b5dc42d8e9cd3ba64276ad6cf47aea26b0 (diff) | |
download | luafilesystem-c5bfbb1bd28daa49a0d6c136052aea109f314f85.tar.gz luafilesystem-c5bfbb1bd28daa49a0d6c136052aea109f314f85.tar.bz2 luafilesystem-c5bfbb1bd28daa49a0d6c136052aea109f314f85.zip |
fixed windows compile problem
Diffstat (limited to 'src/lfs.c')
-rw-r--r-- | src/lfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,7 +16,7 @@ | |||
16 | ** lfs.touch (filepath [, atime [, mtime]]) | 16 | ** lfs.touch (filepath [, atime [, mtime]]) |
17 | ** lfs.unlock (fh) | 17 | ** lfs.unlock (fh) |
18 | ** | 18 | ** |
19 | ** $Id: lfs.c,v 1.48 2008/02/18 03:13:50 mascarenhas Exp $ | 19 | ** $Id: lfs.c,v 1.49 2008/02/19 20:08:23 mascarenhas Exp $ |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <errno.h> | 22 | #include <errno.h> |
@@ -530,7 +530,9 @@ static void push_st_blksize (lua_State *L, struct stat *info) { | |||
530 | #endif | 530 | #endif |
531 | static void push_invalid (lua_State *L, struct stat *info) { | 531 | static void push_invalid (lua_State *L, struct stat *info) { |
532 | luaL_error(L, "invalid attribute name"); | 532 | luaL_error(L, "invalid attribute name"); |
533 | #ifndef _WIN32 | ||
533 | info->st_blksize = 0; /* never reached */ | 534 | info->st_blksize = 0; /* never reached */ |
535 | #endif | ||
534 | } | 536 | } |
535 | 537 | ||
536 | typedef void (*_push_function) (lua_State *L, struct stat *info); | 538 | typedef void (*_push_function) (lua_State *L, struct stat *info); |