diff options
| author | mpeterv <mpeterval@gmail.com> | 2016-01-25 13:52:41 +0300 |
|---|---|---|
| committer | mpeterv <mpeterval@gmail.com> | 2016-02-11 15:51:54 +0300 |
| commit | a7f21e8ec44586fafd5a6a2ffaaf721b69d86f6e (patch) | |
| tree | 3efbddd89b294e96a5cd72159682c6ff68d19fe5 /src | |
| parent | 83880dbed77f9a0a3627bce2e7bfbe1b862e091d (diff) | |
| download | luasocket-a7f21e8ec44586fafd5a6a2ffaaf721b69d86f6e.tar.gz luasocket-a7f21e8ec44586fafd5a6a2ffaaf721b69d86f6e.tar.bz2 luasocket-a7f21e8ec44586fafd5a6a2ffaaf721b69d86f6e.zip | |
Fix error in ltn12 under Lua 5.3
Diffstat (limited to 'src')
| -rw-r--r-- | src/ltn12.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ltn12.lua b/src/ltn12.lua index 1014de2..f75cd07 100644 --- a/src/ltn12.lua +++ b/src/ltn12.lua | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | ----------------------------------------------------------------------------- | 9 | ----------------------------------------------------------------------------- |
| 10 | local string = require("string") | 10 | local string = require("string") |
| 11 | local table = require("table") | 11 | local table = require("table") |
| 12 | local unpack = unpack or table.unpack | ||
| 12 | local base = _G | 13 | local base = _G |
| 13 | local _M = {} | 14 | local _M = {} |
| 14 | if module then -- heuristic for exporting a global package table | 15 | if module then -- heuristic for exporting a global package table |
