diff options
| -rw-r--r-- | src/luarocks/core/sysdetect.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/luarocks/core/sysdetect.lua b/src/luarocks/core/sysdetect.lua index bd5139b7..213d16bf 100644 --- a/src/luarocks/core/sysdetect.lua +++ b/src/luarocks/core/sysdetect.lua | |||
| @@ -180,6 +180,15 @@ local function detect_elf_system(fd, hdr, sections) | |||
| 180 | idx = idx + (vn_next * (vn_cnt + 1)) | 180 | idx = idx + (vn_next * (vn_cnt + 1)) |
| 181 | end | 181 | end |
| 182 | end | 182 | end |
| 183 | |||
| 184 | local procfile = io.open("/proc/sys/kernel/ostype") | ||
| 185 | if procfile then | ||
| 186 | local version = procfile:read(6) | ||
| 187 | procfile:close() | ||
| 188 | if version == "Linux\n" then | ||
| 189 | return "linux" | ||
| 190 | end | ||
| 191 | end | ||
| 183 | end | 192 | end |
| 184 | 193 | ||
| 185 | return system | 194 | return system |
