Check-in [b2cc871031]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:b2cc87103190ade4b5e27225697e13feb0352a0f
Date: 2012-04-21 18:06:15
User: drh
Comment:Enhance to #ifdef lines to enable Fossil to build and run on haiku.
Tags And Properties
Changes

Changes to src/main.c

1638 g.cgiOutput = 1; 1638 g.cgiOutput = 1; 1639 g.fullHttpReply = 1; 1639 g.fullHttpReply = 1; 1640 cgi_handle_http_request(0); 1640 cgi_handle_http_request(0); 1641 process_one_web_page(0); 1641 process_one_web_page(0); 1642 } 1642 } 1643 1643 1644 #if !defined(_WIN32) 1644 #if !defined(_WIN32) 1645 #if !defined(__DARWIN__) && !defined(__APPLE__) | 1645 #if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) 1646 /* 1646 /* 1647 ** Search for an executable on the PATH environment variable. 1647 ** Search for an executable on the PATH environment variable. 1648 ** Return true (1) if found and false (0) if not found. 1648 ** Return true (1) if found and false (0) if not found. 1649 */ 1649 */ 1650 static int binaryOnPath(const char *zBinary){ 1650 static int binaryOnPath(const char *zBinary){ 1651 const char *zPath = fossil_getenv("PATH"); 1651 const char *zPath = fossil_getenv("PATH"); 1652 char *zFull; 1652 char *zFull; ................................................................................................................................................................................ 1734 }else{ 1734 }else{ 1735 iPort = db_get_int("http-port", 8080); 1735 iPort = db_get_int("http-port", 8080); 1736 mxPort = iPort+100; 1736 mxPort = iPort+100; 1737 } 1737 } 1738 #if !defined(_WIN32) 1738 #if !defined(_WIN32) 1739 /* Unix implementation */ 1739 /* Unix implementation */ 1740 if( isUiCmd ){ 1740 if( isUiCmd ){ 1741 #if !defined(__DARWIN__) && !defined(__APPLE__) | 1741 #if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__) 1742 zBrowser = db_get("web-browser", 0); 1742 zBrowser = db_get("web-browser", 0); 1743 if( zBrowser==0 ){ 1743 if( zBrowser==0 ){ 1744 static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" }; 1744 static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" }; 1745 int i; 1745 int i; 1746 zBrowser = "echo"; 1746 zBrowser = "echo"; 1747 for(i=0; i<sizeof(azBrowserProg)/sizeof(azBrowserProg[0]); i++){ 1747 for(i=0; i<sizeof(azBrowserProg)/sizeof(azBrowserProg[0]); i++){ 1748 if( binaryOnPath(azBrowserProg[i]) ){ 1748 if( binaryOnPath(azBrowserProg[i]) ){