diff options
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); |