Fossil SCM
Enhance to #ifdef lines to enable Fossil to build and run on haiku.
Commit
b2cc87103190ade4b5e27225697e13feb0352a0f
Parent
fb48371c74d1183…
1 file changed
+2
-2
+2
-2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1640,11 +1640,11 @@ | ||
| 1640 | 1640 | cgi_handle_http_request(0); |
| 1641 | 1641 | process_one_web_page(0); |
| 1642 | 1642 | } |
| 1643 | 1643 | |
| 1644 | 1644 | #if !defined(_WIN32) |
| 1645 | -#if !defined(__DARWIN__) && !defined(__APPLE__) | |
| 1645 | +#if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) | |
| 1646 | 1646 | /* |
| 1647 | 1647 | ** Search for an executable on the PATH environment variable. |
| 1648 | 1648 | ** Return true (1) if found and false (0) if not found. |
| 1649 | 1649 | */ |
| 1650 | 1650 | static int binaryOnPath(const char *zBinary){ |
| @@ -1736,11 +1736,11 @@ | ||
| 1736 | 1736 | mxPort = iPort+100; |
| 1737 | 1737 | } |
| 1738 | 1738 | #if !defined(_WIN32) |
| 1739 | 1739 | /* Unix implementation */ |
| 1740 | 1740 | if( isUiCmd ){ |
| 1741 | -#if !defined(__DARWIN__) && !defined(__APPLE__) | |
| 1741 | +#if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) | |
| 1742 | 1742 | zBrowser = db_get("web-browser", 0); |
| 1743 | 1743 | if( zBrowser==0 ){ |
| 1744 | 1744 | static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" }; |
| 1745 | 1745 | int i; |
| 1746 | 1746 | zBrowser = "echo"; |
| 1747 | 1747 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1640,11 +1640,11 @@ | |
| 1640 | cgi_handle_http_request(0); |
| 1641 | process_one_web_page(0); |
| 1642 | } |
| 1643 | |
| 1644 | #if !defined(_WIN32) |
| 1645 | #if !defined(__DARWIN__) && !defined(__APPLE__) |
| 1646 | /* |
| 1647 | ** Search for an executable on the PATH environment variable. |
| 1648 | ** Return true (1) if found and false (0) if not found. |
| 1649 | */ |
| 1650 | static int binaryOnPath(const char *zBinary){ |
| @@ -1736,11 +1736,11 @@ | |
| 1736 | mxPort = iPort+100; |
| 1737 | } |
| 1738 | #if !defined(_WIN32) |
| 1739 | /* Unix implementation */ |
| 1740 | if( isUiCmd ){ |
| 1741 | #if !defined(__DARWIN__) && !defined(__APPLE__) |
| 1742 | zBrowser = db_get("web-browser", 0); |
| 1743 | if( zBrowser==0 ){ |
| 1744 | static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" }; |
| 1745 | int i; |
| 1746 | zBrowser = "echo"; |
| 1747 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1640,11 +1640,11 @@ | |
| 1640 | cgi_handle_http_request(0); |
| 1641 | process_one_web_page(0); |
| 1642 | } |
| 1643 | |
| 1644 | #if !defined(_WIN32) |
| 1645 | #if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) |
| 1646 | /* |
| 1647 | ** Search for an executable on the PATH environment variable. |
| 1648 | ** Return true (1) if found and false (0) if not found. |
| 1649 | */ |
| 1650 | static int binaryOnPath(const char *zBinary){ |
| @@ -1736,11 +1736,11 @@ | |
| 1736 | mxPort = iPort+100; |
| 1737 | } |
| 1738 | #if !defined(_WIN32) |
| 1739 | /* Unix implementation */ |
| 1740 | if( isUiCmd ){ |
| 1741 | #if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) |
| 1742 | zBrowser = db_get("web-browser", 0); |
| 1743 | if( zBrowser==0 ){ |
| 1744 | static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" }; |
| 1745 | int i; |
| 1746 | zBrowser = "echo"; |
| 1747 |