From efec62b7a85dc492e2a34a35ee3e1f83e15face2 Mon Sep 17 00:00:00 2001
From: Daniel Lemos <xspager@gmail.com>
Date: Fri, 11 Mar 2016 15:43:18 -0300
Subject: Add HaikuOS as platform

---
 src/luarocks/cfg.lua | 11 +++++++----
 1 file 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
    cfg.platforms.windows = true
    cfg.platforms.mingw32 = true
    cfg.platforms.win32 = true
+elseif system == "Haiku" then
+   cfg.platforms.unix = true
+   cfg.platforms.haiku = true
 else
    cfg.platforms.unix = true
    -- Fall back to Unix in unknown systems.
@@ -137,11 +140,11 @@ local platform_order = {
    linux = 7,
    macosx = 8,
    cygwin = 9,
+   haiku = 10,
    -- Windows
-   win32 = 10,
-   mingw32 = 11,
-   windows = 12 }
-
+   win32 = 11,
+   mingw32 = 12,
+   windows = 13 }
 
 -- Path configuration:
 local sys_config_file, home_config_file
-- 
cgit v1.2.3-55-g6feb