diff --git a/xpfe/appshell/src/nsCommandLineService.cpp b/xpfe/appshell/src/nsCommandLineService.cpp index b43c552d46e..196f673fe14 100644 --- a/xpfe/appshell/src/nsCommandLineService.cpp +++ b/xpfe/appshell/src/nsCommandLineService.cpp @@ -168,8 +168,8 @@ PRBool nsCmdLineService::ArgsMatch(const char *lookingFor, const char *userGave) if (!PL_strcasecmp(lookingFor,userGave)) return PR_TRUE; -#ifdef XP_UNIX - /* on unix, we'll allow --mail for -mail */ +#if defined(XP_UNIX) || defined(XP_BEOS) + /* on unix and beos, we'll allow --mail for -mail */ if ((PL_strlen(lookingFor) > 0) && (PL_strlen(userGave) > 1)) { if (!PL_strcasecmp(lookingFor+1,userGave+2) && (lookingFor[0] == '-') && (userGave[0] == '-') && (userGave[1] == '-')) return PR_TRUE; } diff --git a/xpfe/bootstrap/nsAppRunner.cpp b/xpfe/bootstrap/nsAppRunner.cpp index 649e8a0643d..c2a95673cc1 100644 --- a/xpfe/bootstrap/nsAppRunner.cpp +++ b/xpfe/bootstrap/nsAppRunner.cpp @@ -824,9 +824,9 @@ int main(int argc, char* argv[]) for (i=1; i 0) && (PL_strlen(userGave) > 1)) { if (!PL_strcasecmp(lookingFor+1,userGave+2) && (lookingFor[0] == '-') && (userGave[0] == '-') && (userGave[1] == '-')) return PR_TRUE; }