diff options
-rw-r--r-- | src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -431,7 +431,8 @@ static int make_link(lua_State *L) | |||
431 | return pushresult(L, | 431 | return pushresult(L, |
432 | (lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL); | 432 | (lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL); |
433 | #else | 433 | #else |
434 | return pusherror(L, "make_link is not supported on Windows"); | 434 | errno = ENOSYS; /* = "Function not implemented" */ |
435 | return pushresult(L, -1, "make_link is not supported on Windows"); | ||
435 | #endif | 436 | #endif |
436 | } | 437 | } |
437 | 438 | ||