aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index e41b632c..f4e50eff 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -120,6 +120,9 @@ elseif system and system:match("^MINGW") then
120 cfg.platforms.windows = true 120 cfg.platforms.windows = true
121 cfg.platforms.mingw32 = true 121 cfg.platforms.mingw32 = true
122 cfg.platforms.win32 = true 122 cfg.platforms.win32 = true
123elseif system == "Haiku" then
124 cfg.platforms.unix = true
125 cfg.platforms.haiku = true
123else 126else
124 cfg.platforms.unix = true 127 cfg.platforms.unix = true
125 -- Fall back to Unix in unknown systems. 128 -- Fall back to Unix in unknown systems.
@@ -137,11 +140,11 @@ local platform_order = {
137 linux = 7, 140 linux = 7,
138 macosx = 8, 141 macosx = 8,
139 cygwin = 9, 142 cygwin = 9,
143 haiku = 10,
140 -- Windows 144 -- Windows
141 win32 = 10, 145 win32 = 11,
142 mingw32 = 11, 146 mingw32 = 12,
143 windows = 12 } 147 windows = 13 }
144
145 148
146-- Path configuration: 149-- Path configuration:
147local sys_config_file, home_config_file 150local sys_config_file, home_config_file