Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:littlewiki
Spicebird
spicebird-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spicebird-path.patch of Package Spicebird
--- a/toolkit/mozapps/update/src/updater/updater.cpp Tue Oct 21 16:36:29 2008 +1300 +++ b/toolkit/mozapps/update/src/updater/updater.cpp Mon Oct 20 22:55:57 2008 -0500 @@ -118,7 +118,9 @@ void LaunchChild(int argc, char **argv); #endif #ifndef MAXPATHLEN -# ifdef MAX_PATH +# ifdef PATH_MAX +# define MAXPATHLEN PATH_MAX +# elif defined(_MAX_PATH) # define MAXPATHLEN MAX_PATH # elif defined(_MAX_PATH) # define MAXPATHLEN _MAX_PATH --- a/toolkit/xre/nsAppRunner.h Tue Oct 21 16:36:29 2008 +1300 +++ b/toolkit/xre/nsAppRunner.h Mon Oct 20 22:55:57 2008 -0500 @@ -40,10 +40,14 @@ #ifdef XP_WIN #include <windows.h> +#else +#include <limits.h> #endif #ifndef MAXPATHLEN -#ifdef _MAX_PATH +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#elif defined(_MAX_PATH) #define MAXPATHLEN _MAX_PATH #elif defined(CCHMAXPATH) #define MAXPATHLEN CCHMAXPATH --- a/xpcom/build/nsXPCOMPrivate.h Tue Oct 21 16:36:29 2008 +1300 +++ b/xpcom/build/nsXPCOMPrivate.h Mon Oct 20 22:55:57 2008 -0500 @@ -231,6 +231,7 @@ NS_GetFrozenFunctions(XPCOMFunctions *en #define XUL_DLL "libxul"MOZ_DLL_SUFFIX #else // Unix +#include <limits.h> // for PATH_MAX #define XPCOM_DLL "libxpcom"MOZ_DLL_SUFFIX Index: mozilla/db/sqlite3/src/sqlite3.c =================================================================== RCS file: /cvsroot/mozilla/db/sqlite3/src/sqlite3.c,v retrieving revision 1.19 diff -u -p -8 -r1.19 sqlite3.c --- mozilla/db/sqlite3/src/sqlite3.c 24 Jun 2008 22:51:15 -0000 1.19 +++ mozilla/db/sqlite3/src/sqlite3.c 27 Dec 2008 09:53:55 -0000 @@ -18777,16 +18777,17 @@ SQLITE_PRIVATE sqlite3_vfs *sqlite3OsDef ** standard include files. */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/time.h> #include <errno.h> +#include <limits.h> #ifdef SQLITE_ENABLE_LOCKING_STYLE #include <sys/ioctl.h> #include <sys/param.h> #include <sys/mount.h> #endif /* SQLITE_ENABLE_LOCKING_STYLE */ /* ** If we are to be thread-safe, include the pthreads header and define @@ -18801,17 +18802,21 @@ SQLITE_PRIVATE sqlite3_vfs *sqlite3OsDef */ #ifndef SQLITE_DEFAULT_FILE_PERMISSIONS # define SQLITE_DEFAULT_FILE_PERMISSIONS 0644 #endif /* ** Maximum supported path-length. */ -#define MAX_PATHNAME 512 +#ifdef PATH_MAX +# define MAX_PATHNAME PATH_MAX +#else +# define MAX_PATHNAME 512 +#endif /* ** The unixFile structure is subclass of sqlite3_file specific for the unix ** protability layer. */ typedef struct unixFile unixFile; struct unixFile { Index: mozilla/xpcom/io/SpecialSystemDirectory.cpp =================================================================== RCS file: /cvsroot/mozilla/xpcom/io/SpecialSystemDirectory.cpp,v retrieving revision 1.40 diff -u -p -8 -r1.40 SpecialSystemDirectory.cpp --- mozilla/xpcom/io/SpecialSystemDirectory.cpp 14 Mar 2008 18:34:21 -0000 1.40 +++ mozilla/xpcom/io/SpecialSystemDirectory.cpp 27 Dec 2008 09:53:56 -0000 @@ -71,16 +71,17 @@ #define INCL_WINSHELLDATA #include <os2.h> #include <stdlib.h> #include <stdio.h> #include "prenv.h" #elif defined(XP_UNIX) +#include <limits.h> #include <unistd.h> #include <stdlib.h> #include <sys/param.h> #include "prenv.h" #elif defined(XP_BEOS) #include <FindDirectory.h> @@ -95,17 +96,19 @@ #endif #if defined(VMS) #include <unixlib.h> #endif #ifndef MAXPATHLEN -#ifdef MAX_PATH +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#elif defined(MAX_PATH) #define MAXPATHLEN MAX_PATH #elif defined(_MAX_PATH) #define MAXPATHLEN _MAX_PATH #elif defined(CCHMAXPATH) #define MAXPATHLEN CCHMAXPATH #else #define MAXPATHLEN 1024 #endif Index: mozilla/widget/src/xremoteclient/XRemoteClient.cpp =================================================================== RCS file: /cvsroot/mozilla/widget/src/xremoteclient/XRemoteClient.cpp,v retrieving revision 1.22 diff -u -p -8 -r1.22 XRemoteClient.cpp --- mozilla/widget/src/xremoteclient/XRemoteClient.cpp 4 Sep 2007 04:13:24 -0000 1.22 +++ mozilla/widget/src/xremoteclient/XRemoteClient.cpp 27 Dec 2008 09:53:57 -0000 @@ -48,16 +48,17 @@ #include "prdtoa.h" #include <stdlib.h> #include <unistd.h> #include <string.h> #include <strings.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> +#include <limits.h> #include <X11/Xatom.h> #ifdef POLL_WITH_XCONNECTIONNUMBER #include <poll.h> #endif #define MOZILLA_VERSION_PROP "_MOZILLA_VERSION" #define MOZILLA_LOCK_PROP "_MOZILLA_LOCK" #define MOZILLA_COMMAND_PROP "_MOZILLA_COMMAND" @@ -71,18 +72,22 @@ #define TO_LITTLE_ENDIAN32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) #else #define TO_LITTLE_ENDIAN32(x) (x) #endif #ifndef MAX_PATH +#ifdef PATH_MAX +#define MAX_PATH PATH_MAX +#else #define MAX_PATH 1024 #endif +#endif #define ARRAY_LENGTH(array_) (sizeof(array_)/sizeof(array_[0])) static PRLogModuleInfo *sRemoteLm = NULL; XRemoteClient::XRemoteClient() { mDisplay = 0; Index: mozilla/modules/lcms/include/lcms.h =================================================================== RCS file: /cvsroot/mozilla/modules/lcms/include/lcms.h,v retrieving revision 1.2 diff -u -p -8 -r1.2 lcms.h --- mozilla/modules/lcms/include/lcms.h 6 Aug 2007 20:01:21 -0000 1.2 +++ mozilla/modules/lcms/include/lcms.h 27 Dec 2008 09:53:59 -0000 @@ -178,16 +178,17 @@ typedef pthread_rwlock_t LCMS_RW #if !defined(__INTEGRITY) # include <memory.h> #endif #include <string.h> #if defined(__GNUC__) || defined(__FreeBSD__) # include <unistd.h> +# include <limits.h> #endif #ifndef LCMS_WIN_TYPES_ALREADY_DEFINED typedef unsigned char BYTE, *LPBYTE; typedef unsigned short WORD, *LPWORD; typedef unsigned long DWORD, *LPDWORD; typedef char *LPSTR; @@ -208,17 +209,21 @@ typedef void *LPVOID; #ifndef TRUE # define TRUE 1 #endif #define LOWORD(l) ((WORD)(l)) #define HIWORD(l) ((WORD)((DWORD)(l) >> 16)) #ifndef MAX_PATH -# define MAX_PATH (256) +# ifdef PATH_MAX +# define MAX_PATH PATH_MAX +# else +# define MAX_PATH (256) +# endif #endif #define cdecl #endif // The specification for "inline" is section 6.7.4 of the C99 standard (ISO/IEC 9899:1999). #define LCMS_INLINE static inline Index: mozilla/modules/libreg/src/reg.c =================================================================== RCS file: /cvsroot/mozilla/modules/libreg/src/reg.c,v retrieving revision 3.65 diff -u -p -8 -r3.65 reg.c --- mozilla/modules/libreg/src/reg.c 24 Jun 2007 01:07:21 -0000 3.65 +++ mozilla/modules/libreg/src/reg.c 27 Dec 2008 09:54:02 -0000 @@ -64,16 +64,20 @@ #include <stdio.h> #include <string.h> #ifdef XP_MACOSX #include <Carbon/Carbon.h> #endif +#ifdef XP_UNIX +#include <limits.h> +#endif + #ifdef STANDALONE_REGISTRY #include <stdlib.h> #include <assert.h> #include <errno.h> #else #include "prtypes.h" #include "prlog.h" #include "prerror.h" @@ -86,18 +90,22 @@ #include "reg.h" #include "NSReg.h" #if defined(XP_MACOSX) #define MAX_PATH PATH_MAX #elif defined(XP_UNIX) #ifndef MAX_PATH +#ifdef PATH_MAX +#define MAX_PATH PATH_MAX +#else #define MAX_PATH 1024 #endif +#endif #elif defined(XP_OS2) #ifndef MAX_PATH #define MAX_PATH 260 #endif #elif defined(WIN32) #define MAX_PATH _MAX_PATH #elif defined(XP_BEOS) #include <limits.h> Index: mozilla/js/src/jsfile.c =================================================================== RCS file: /cvsroot/mozilla/js/src/jsfile.c,v retrieving revision 3.50 diff -u -p -8 -r3.50 jsfile.c --- mozilla/js/src/jsfile.c 4 Dec 2007 03:40:06 -0000 3.50 +++ mozilla/js/src/jsfile.c 27 Dec 2008 09:54:05 -0000 @@ -57,16 +57,17 @@ # define CURRENT_DIR "c:\\" # define POPEN _popen # define PCLOSE _pclose #elif defined(XP_UNIX) || defined(XP_BEOS) # include <strings.h> # include <stdio.h> # include <stdlib.h> # include <unistd.h> +# include <limits.h> # define FILESEPARATOR '/' # define FILESEPARATOR2 '\0' # define CURRENT_DIR "/" # define POPEN popen # define PCLOSE pclose #endif /* --------------- Platform-independent includes and defines ---------------- */ @@ -100,17 +101,21 @@ #define ASCII 0 #define UTF8 1 #define UCS2 2 #define asciistring "text" #define utfstring "binary" #define unicodestring "unicode" +#ifdef PATH_MAX +#define MAX_PATH_LENGTH PATH_MAX +#else #define MAX_PATH_LENGTH 1024 +#endif #define MODE_SIZE 256 #define NUMBER_SIZE 32 #define MAX_LINE_LENGTH 256 #define URL_PREFIX "file://" #define STDINPUT_NAME "Standard input stream" #define STDOUTPUT_NAME "Standard output stream" #define STDERROR_NAME "Standard error stream" Index: mozilla/mail/components/migration/src/nsProfileMigrator.cpp =================================================================== RCS file: /cvsroot/mozilla/mail/components/migration/src/nsProfileMigrator.cpp,v retrieving revision 1.15 diff -u -p -8 -r1.15 nsProfileMigrator.cpp --- mozilla/mail/components/migration/src/nsProfileMigrator.cpp 31 Mar 2008 07:50:44 -0000 1.15 +++ mozilla/mail/components/migration/src/nsProfileMigrator.cpp 27 Dec 2008 10:04:59 -0000 @@ -51,20 +51,24 @@ #include "nsIProperties.h" #include "nsDirectoryServiceDefs.h" #include "nsProfileMigrator.h" #include "nsMailMigrationCID.h" #include "NSReg.h" #ifdef XP_WIN #include <windows.h> +#else +#include <limits.h> #endif #ifndef MAXPATHLEN -#ifdef _MAX_PATH +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#elif defined(_MAX_PATH) #define MAXPATHLEN _MAX_PATH #elif defined(CCHMAXPATH) #define MAXPATHLEN CCHMAXPATH #else #define MAXPATHLEN 1024 #endif #endif Index: mozilla/mail/components/migration/src/nsDogbertProfileMigrator.cpp =================================================================== RCS file: /cvsroot/mozilla/mail/components/migration/src/nsDogbertProfileMigrator.cpp,v retrieving revision 1.21 diff -u -p -8 -r1.21 nsDogbertProfileMigrator.cpp --- mozilla/mail/components/migration/src/nsDogbertProfileMigrator.cpp 28 Jun 2008 08:07:55 -0000 1.21 +++ mozilla/mail/components/migration/src/nsDogbertProfileMigrator.cpp 27 Dec 2008 10:05:03 -0000 @@ -53,25 +53,28 @@ #include "nsVoidArray.h" #include "prprf.h" #include "prmem.h" #include "prio.h" #include "prenv.h" #include "NSReg.h" #include "msgCore.h" #include "nsDirectoryServiceUtils.h" +#include <limits.h> // lots of includes required for the nsPrefMigration.cpp code that we copied: #include "nsICharsetConverterManager.h" #include "nsIPlatformCharset.h" #define MIGRATION_PROPERTIES_URL "chrome://messenger/locale/migration/migration.properties" #ifndef MAXPATHLEN -#ifdef _MAX_PATH +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#elif defined(_MAX_PATH) #define MAXPATHLEN _MAX_PATH #elif defined(CCHMAXPATH) #define MAXPATHLEN CCHMAXPATH #else #define MAXPATHLEN 1024 #endif #endif Index: mozilla/mailnews/import/comm4x/src/nsComm4xProfile.cpp =================================================================== RCS file: /cvsroot/mozilla/mailnews/import/comm4x/src/nsComm4xProfile.cpp,v retrieving revision 1.18 diff -u -p -8 -r1.18 nsComm4xProfile.cpp --- mozilla/mailnews/import/comm4x/src/nsComm4xProfile.cpp 1 Dec 2007 08:54:59 -0000 1.18 +++ mozilla/mailnews/import/comm4x/src/nsComm4xProfile.cpp 27 Dec 2008 10:05:03 -0000 @@ -39,16 +39,20 @@ #include "nsComm4xProfile.h" #include "nsIFileStreams.h" #include "nsILineInputStream.h" #include "nsNetCID.h" #include "nsDirectoryServiceDefs.h" #include "NSReg.h" #include "nsComponentManagerUtils.h" +#ifdef XP_UNIX +#include <limits.h> +#endif + #if defined(XP_MACOSX) #define PREF_FILE_NAME_IN_4x "Netscape Preferences" #define OLDREG_NAME "Netscape Registry" #define OLDREG_DIR NS_MAC_PREFS_DIR #elif defined(XP_UNIX) && !defined(XP_MACOSX) #define PREF_FILE_NAME_IN_4x "preferences.js" #elif defined(XP_WIN) || defined(XP_OS2) #define PREF_FILE_NAME_IN_4x "prefs.js" @@ -60,17 +64,19 @@ #endif #else /* this will cause a failure at run time, as it should, since we don't know how to migrate platforms other than Mac, Windows and UNIX */ #define PREF_FILE_NAME_IN_4x "" #endif #ifndef MAXPATHLEN -#ifdef _MAX_PATH +#ifdef PATH_MAX +#define MAXPATHLEN PATH_MAX +#elif defined(_MAX_PATH) #define MAXPATHLEN _MAX_PATH #elif defined(CCHMAXPATH) #define MAXPATHLEN CCHMAXPATH #else #define MAXPATHLEN 1024 #endif #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor