BeOS changes
This commit is contained in:
Родитель
345930fc4f
Коммит
dab59720d8
|
@ -48,7 +48,7 @@
|
|||
#define MIME_DLL "mime.dll"
|
||||
#define PREF_DLL "xppref32.dll"
|
||||
#define UNICHAR_DLL "uconv.dll"
|
||||
#elif defined(XP_UNIX)
|
||||
#elif defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#define NETLIB_DLL "libnetlib"MOZ_DLL_SUFFIX
|
||||
#define XPCOM_DLL "libxpcom"MOZ_DLL_SUFFIX
|
||||
#define MIME_DLL "libmime.dll"MOZ_DLL_SUFFIX
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
static NS_DEFINE_CID(kNNTPNewsgroupCID, NS_NNTPNEWSGROUP_CID);
|
||||
static NS_DEFINE_CID(kNNTPNewsgroupListCID, NS_NNTPNEWSGROUPLIST_CID);
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
static const char LINEBREAK_START = '\012';
|
||||
#else
|
||||
static const char LINEBREAK_START = '\015';
|
||||
|
@ -212,7 +212,7 @@ nsNNTPHost::WriteNewsrc()
|
|||
|
||||
PRInt32 status = 0;
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||
/* Clone the permissions of the "real" newsrc file into the temp file,
|
||||
so that when we rename the finished temp file to the real file, the
|
||||
preferences don't appear to change. */
|
||||
|
@ -225,7 +225,7 @@ nsNNTPHost::WriteNewsrc()
|
|||
/* SCO doesn't define fchmod at all. no big deal.
|
||||
AIX3, however, defines it to take a char* as the first parameter. The
|
||||
man page says it takes an int, though. ... */
|
||||
#if defined( SCO_SV ) || defined ( AIXV3 )
|
||||
#if defined( SCO_SV ) || defined ( AIXV3 ) || defined(XP_BEOS)
|
||||
{
|
||||
char *really_tmp_file = WH_FileName(GetNewsrcFileName(), xpTemporaryNewsRC);
|
||||
|
||||
|
|
|
@ -25,13 +25,13 @@
|
|||
|
||||
/* some platforms (like Windows and Mac) use a map file, because of
|
||||
* file name length limitations. */
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#if defined(XP_MAC) || defined(XP_WIN)
|
||||
#define USE_NEWSRC_MAP_FILE
|
||||
#else
|
||||
#error do_you_need_a_newsrc_map_file
|
||||
#endif /* XP_MAC || XP_WIN */
|
||||
#endif /* XP_UNIX */
|
||||
#endif /* XP_UNIX || XP_BEOS */
|
||||
|
||||
#include "nsMsgFolderFlags.h"
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ static const char kNewsMessageRootURI[] = "news_message:/";
|
|||
* some platforms (like Windows and Mac) use a map file, because of
|
||||
* file name length limitations.
|
||||
*/
|
||||
#ifndef XP_UNIX
|
||||
#if !defined(XP_UNIX) && !defined(XP_BEOS)
|
||||
#define USE_NEWSRC_MAP_FILE
|
||||
|
||||
#if defined(XP_PC)
|
||||
|
@ -48,7 +48,7 @@ static const char kNewsMessageRootURI[] = "news_message:/";
|
|||
#error dont_know_what_your_fat_file_is
|
||||
#endif
|
||||
|
||||
#endif /* ! XP_UNIX */
|
||||
#endif /* ! XP_UNIX && ! XP_BEOS */
|
||||
|
||||
extern nsresult
|
||||
nsGetNewsHostName(const char *rootURI, const char *uriStr, char **hostName);
|
||||
|
|
|
@ -370,7 +370,7 @@ nsresult nsNntpUrl::ParseUrl(const nsString& aSpec)
|
|||
}
|
||||
|
||||
|
||||
#if defined(XP_UNIX) || defined (XP_MAC)
|
||||
#if defined(XP_UNIX) || defined (XP_MAC) || defined(XP_BEOS)
|
||||
// Always leave the top level slash for absolute file paths under Mac and UNIX.
|
||||
// The code above sometimes results in stripping all of slashes
|
||||
// off. This only happens when a previously stripped url is asked to be
|
||||
|
|
Загрузка…
Ссылка в новой задаче