aboutsummaryrefslogtreecommitdiff
path: root/luafilesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'luafilesystem.h')
-rw-r--r--luafilesystem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/luafilesystem.h b/luafilesystem.h
new file mode 100644
index 0000000..6178dd7
--- /dev/null
+++ b/luafilesystem.h
@@ -0,0 +1,10 @@
1/* Define 'chdir' for systems that do not implement it */
2/* $Id: luafilesystem.h,v 1.1 2004/07/27 14:15:24 tomas Exp $ */
3#ifdef NO_CHDIR
4#define chdir(p) (-1)
5#define chdir_error "Function 'chdir' not provided by system"
6#else
7#define chdir_error strerror(errno)
8#endif
9
10int luaopen_filesystem (lua_State *L);