diff options
-rw-r--r-- | src/luarocks/cfg.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 2924e435..0099ec3a 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -124,6 +124,9 @@ elseif system and system:match("^MINGW") then | |||
124 | cfg.platforms.windows = true | 124 | cfg.platforms.windows = true |
125 | cfg.platforms.mingw32 = true | 125 | cfg.platforms.mingw32 = true |
126 | cfg.platforms.win32 = true | 126 | cfg.platforms.win32 = true |
127 | elseif system == "Haiku" then | ||
128 | cfg.platforms.unix = true | ||
129 | cfg.platforms.haiku = true | ||
127 | else | 130 | else |
128 | cfg.platforms.unix = true | 131 | cfg.platforms.unix = true |
129 | -- Fall back to Unix in unknown systems. | 132 | -- Fall back to Unix in unknown systems. |
@@ -142,11 +145,11 @@ local platform_order = { | |||
142 | macosx = 8, | 145 | macosx = 8, |
143 | cygwin = 9, | 146 | cygwin = 9, |
144 | msys = 10, | 147 | msys = 10, |
148 | haiku = 11, | ||
145 | -- Windows | 149 | -- Windows |
146 | win32 = 11, | 150 | win32 = 12, |
147 | mingw32 = 12, | 151 | mingw32 = 13, |
148 | windows = 13 } | 152 | windows = 14 } |
149 | |||
150 | 153 | ||
151 | -- Path configuration: | 154 | -- Path configuration: |
152 | local sys_config_file, home_config_file | 155 | local sys_config_file, home_config_file |