Fossil SCM

Enhance to #ifdef lines to enable Fossil to build and run on haiku.

drh 2012-04-21 18:06 trunk
Commit b2cc87103190ade4b5e27225697e13feb0352a0f
1 file changed +2 -2
+2 -2
--- src/main.c
+++ src/main.c
@@ -1640,11 +1640,11 @@
16401640
cgi_handle_http_request(0);
16411641
process_one_web_page(0);
16421642
}
16431643
16441644
#if !defined(_WIN32)
1645
-#if !defined(__DARWIN__) && !defined(__APPLE__)
1645
+#if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__)
16461646
/*
16471647
** Search for an executable on the PATH environment variable.
16481648
** Return true (1) if found and false (0) if not found.
16491649
*/
16501650
static int binaryOnPath(const char *zBinary){
@@ -1736,11 +1736,11 @@
17361736
mxPort = iPort+100;
17371737
}
17381738
#if !defined(_WIN32)
17391739
/* Unix implementation */
17401740
if( isUiCmd ){
1741
-#if !defined(__DARWIN__) && !defined(__APPLE__)
1741
+#if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__)
17421742
zBrowser = db_get("web-browser", 0);
17431743
if( zBrowser==0 ){
17441744
static char *azBrowserProg[] = { "xdg-open", "gnome-open", "firefox" };
17451745
int i;
17461746
zBrowser = "echo";
17471747
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button