From bba1ab079eddab503ba547de86ef46bf08d8a623 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Wed, 3 Jul 2013 10:00:12 +0200 Subject: [PATCH] FreeBSD tuning. --- .../modules/beast_core/native/beast_bsd_Files.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Subtrees/beast/modules/beast_core/native/beast_bsd_Files.cpp b/Subtrees/beast/modules/beast_core/native/beast_bsd_Files.cpp index e29f551dc..ec8bccdb6 100644 --- a/Subtrees/beast/modules/beast_core/native/beast_bsd_Files.cpp +++ b/Subtrees/beast/modules/beast_core/native/beast_bsd_Files.cpp @@ -23,10 +23,10 @@ enum { - U_ISOFS_SUPER_MAGIC = 0x9660, // linux/iso_fs.h - U_MSDOS_SUPER_MAGIC = 0x4d44, // linux/msdos_fs.h - U_NFS_SUPER_MAGIC = 0x6969, // linux/nfs_fs.h - U_SMB_SUPER_MAGIC = 0x517B // linux/smb_fs.h + U_ISOFS_SUPER_MAGIC = 5, + U_MSDOS_SUPER_MAGIC = 2, + U_NFS_SUPER_MAGIC = 1, + U_SMB_SUPER_MAGIC = 8 }; //============================================================================== @@ -94,7 +94,7 @@ bool File::isOnHardDisk() const bool File::isOnRemovableDrive() const { - bassertfalse; // xxx not implemented for linux! + bassertfalse; // XXX not implemented for FreeBSD! return false; } @@ -336,8 +336,8 @@ bool Process::openDocument (const String& fileName, const String& parameters) || ! isFileExecutable (fileName)) { // create a command that tries to launch a bunch of likely browsers - const char* const browserNames[] = { "xdg-open", "/etc/alternatives/x-www-browser", "firefox", "mozilla", - "google-chrome", "chromium-browser", "opera", "konqueror" }; + const char* const browserNames[] = { "xdg-open", "firefox", "seamonkey", + "chrome", "opera", "konqueror" }; StringArray cmdLines; for (int i = 0; i < numElementsInArray (browserNames); ++i)