diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2008-04-28 08:45:24 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2008-04-28 08:45:24 +0000 |
commit | 5b93d006ed6fa1c5990c7079d92d3b7d195068b0 (patch) | |
tree | d2ddf0f582719f4e67e618f99a47fa32db728c27 /Build/source/libs/luafilesystem | |
parent | 6b4bb4d5747a2819cb015fcfe7e6a7521580adbb (diff) |
Aix compilation fixes a from Vladimir Volovich
git-svn-id: svn://tug.org/texlive/trunk@7695 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/luafilesystem')
-rw-r--r-- | Build/source/libs/luafilesystem/src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/libs/luafilesystem/src/lfs.c b/Build/source/libs/luafilesystem/src/lfs.c index ee2920412d1..eea8bfaca83 100644 --- a/Build/source/libs/luafilesystem/src/lfs.c +++ b/Build/source/libs/luafilesystem/src/lfs.c @@ -256,6 +256,8 @@ static int remove_dir (lua_State *L) { static int dir_iter (lua_State *L) { #ifdef _WIN32 struct _finddata_t c_file; +#else + struct dirent *entry; #endif dir_data *d = (dir_data *)lua_touserdata (L, lua_upvalueindex (1)); luaL_argcheck (L, !d->closed, 1, "closed directory"); @@ -281,7 +283,6 @@ static int dir_iter (lua_State *L) { } } #else - struct dirent *entry; if ((entry = readdir (d->dir)) != NULL) { lua_pushstring (L, entry->d_name); return 1; |