[seamonkey/f16] add new patch

Kai Engert kengert at fedoraproject.org
Sun Aug 21 23:58:55 UTC 2011


commit 351b8188b3921452cf80f7c098053c754e47110e
Author: Kai Engert <kaie at redhat.com>
Date:   Mon Aug 22 01:58:31 2011 +0200

    add new patch

 mozilla-23-path.patch |  150 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/mozilla-23-path.patch b/mozilla-23-path.patch
new file mode 100644
index 0000000..976d8bc
--- /dev/null
+++ b/mozilla-23-path.patch
@@ -0,0 +1,150 @@
+diff -up ./mozilla/config/pathsub.h.path ./mozilla/config/pathsub.h
+--- ./mozilla/config/pathsub.h.path	2011-08-20 15:18:11.249950156 +0200
++++ ./mozilla/config/pathsub.h	2011-08-20 15:20:25.212730253 +0200
+@@ -46,7 +46,7 @@
+ #include <sys/types.h>
+ 
+ #ifndef PATH_MAX
+-#define PATH_MAX 1024
++#error  "PATH_MAX is not defined!"
+ #endif
+ 
+ /*
+diff -up ./mozilla/dbm/include/mcom_db.h.path ./mozilla/dbm/include/mcom_db.h
+--- ./mozilla/dbm/include/mcom_db.h.path	2011-08-20 15:18:11.236950273 +0200
++++ ./mozilla/dbm/include/mcom_db.h	2011-08-20 15:20:25.203730334 +0200
+@@ -175,7 +175,8 @@
+ #endif  /* __DBINTERFACE_PRIVATE */
+ 
+ #ifdef SCO
+-#define MAXPATHLEN 	1024              
++#include <limits.h>
++#define MAXPATHLEN 	PATH_MAX     
+ #endif
+ 
+ #include <fcntl.h>
+diff -up ./mozilla/modules/libjar/nsZipArchive.cpp.path ./mozilla/modules/libjar/nsZipArchive.cpp
+--- ./mozilla/modules/libjar/nsZipArchive.cpp.path	2011-08-20 15:18:11.251950138 +0200
++++ ./mozilla/modules/libjar/nsZipArchive.cpp	2011-08-20 15:20:25.220730178 +0200
+@@ -98,7 +98,7 @@ nsRecyclingAllocator *gZlibAllocator = N
+ #    define S_IFLNK  0120000
+ #  endif
+ #  ifndef PATH_MAX
+-#    define PATH_MAX 1024
++#    include <limits.h>
+ #  endif
+ #endif  /* XP_UNIX */
+ 
+diff -up ./mozilla/modules/libreg/src/reg.c.path ./mozilla/modules/libreg/src/reg.c
+--- ./mozilla/modules/libreg/src/reg.c.path	2011-08-14 03:20:29.000000000 +0200
++++ ./mozilla/modules/libreg/src/reg.c	2011-08-20 15:22:14.417736987 +0200
+@@ -94,7 +94,8 @@
+ #ifdef PATH_MAX
+ #define MAX_PATH PATH_MAX
+ #else
+-#define MAX_PATH 1024
++#include <limits.h>
++#define MAX_PATH PATH_MAX
+ #endif
+ #endif
+ #elif defined(XP_OS2)
+diff -up ./mozilla/nsprpub/config/pathsub.h.path ./mozilla/nsprpub/config/pathsub.h
+--- ./mozilla/nsprpub/config/pathsub.h.path	2011-08-20 15:18:11.251950138 +0200
++++ ./mozilla/nsprpub/config/pathsub.h	2011-08-20 15:20:25.221730169 +0200
+@@ -50,7 +50,7 @@
+ #endif
+ 
+ #ifndef PATH_MAX
+-#define PATH_MAX 1024
++#error  "PATH_MAX is not defined!"
+ #endif
+ 
+ /*
+diff -up ./mozilla/security/coreconf/nsinstall/pathsub.h.path ./mozilla/security/coreconf/nsinstall/pathsub.h
+--- ./mozilla/security/coreconf/nsinstall/pathsub.h.path	2011-08-20 15:18:11.252950129 +0200
++++ ./mozilla/security/coreconf/nsinstall/pathsub.h	2011-08-20 15:20:25.222730160 +0200
+@@ -49,7 +49,7 @@
+ #endif
+ 
+ #ifndef PATH_MAX
+-#define PATH_MAX 1024
++#error  "PATH_MAX is not defined!"
+ #endif
+ 
+ /*
+diff -up ./mozilla/toolkit/mozapps/update/updater/updater.cpp.path ./mozilla/toolkit/mozapps/update/updater/updater.cpp
+--- ./mozilla/toolkit/mozapps/update/updater/updater.cpp.path	2011-08-20 15:18:11.233950300 +0200
++++ ./mozilla/toolkit/mozapps/update/updater/updater.cpp	2011-08-20 15:20:25.200730361 +0200
+@@ -206,7 +206,8 @@ void LaunchMacPostProcess(const char* aA
+ # elif defined(CCHMAXPATH)
+ #  define MAXPATHLEN CCHMAXPATH
+ # else
+-#  define MAXPATHLEN 1024
++#  include <limits.h>
++#  define MAXPATHLEN PATH_MAX
+ # endif
+ #endif
+ 
+diff -up ./mozilla/toolkit/xre/nsAppRunner.h.path ./mozilla/toolkit/xre/nsAppRunner.h
+--- ./mozilla/toolkit/xre/nsAppRunner.h.path	2011-08-20 15:18:11.229950336 +0200
++++ ./mozilla/toolkit/xre/nsAppRunner.h	2011-08-20 15:20:25.196730397 +0200
+@@ -52,7 +52,8 @@
+ #elif defined(CCHMAXPATH)
+ #define MAXPATHLEN CCHMAXPATH
+ #else
+-#define MAXPATHLEN 1024
++#include <limits.h>
++#define MAXPATHLEN PATH_MAX
+ #endif
+ #endif
+ 
+diff -up ./mozilla/widget/src/xremoteclient/XRemoteClient.cpp.path ./mozilla/widget/src/xremoteclient/XRemoteClient.cpp
+--- ./mozilla/widget/src/xremoteclient/XRemoteClient.cpp.path	2011-08-20 15:17:55.000000000 +0200
++++ ./mozilla/widget/src/xremoteclient/XRemoteClient.cpp	2011-08-20 15:21:38.289065478 +0200
+@@ -77,7 +77,8 @@
+ #ifdef PATH_MAX
+ #define MAX_PATH PATH_MAX
+ #else
+-#define MAX_PATH 1024
++#include <limits.h>
++#define MAX_PATH PATH_MAX
+ #endif
+ #endif
+ 
+diff -up ./mozilla/xpcom/build/nsXPCOMPrivate.h.path ./mozilla/xpcom/build/nsXPCOMPrivate.h
+--- ./mozilla/xpcom/build/nsXPCOMPrivate.h.path	2011-08-20 15:18:11.236950273 +0200
++++ ./mozilla/xpcom/build/nsXPCOMPrivate.h	2011-08-20 15:20:25.202730343 +0200
+@@ -297,7 +297,8 @@ void LogTerm();
+ #elif defined(CCHMAXPATH)
+ #define MAXPATHLEN CCHMAXPATH
+ #else
+-#define MAXPATHLEN 1024
++#include <limits.h>
++#define MAXPATHLEN PATH_MAX
+ #endif
+ #endif
+ 
+diff -up ./mozilla/xpcom/io/SpecialSystemDirectory.cpp.path ./mozilla/xpcom/io/SpecialSystemDirectory.cpp
+--- ./mozilla/xpcom/io/SpecialSystemDirectory.cpp.path	2011-08-20 15:18:11.235950282 +0200
++++ ./mozilla/xpcom/io/SpecialSystemDirectory.cpp	2011-08-20 15:20:25.201730352 +0200
+@@ -90,7 +90,8 @@
+ #elif defined(CCHMAXPATH)
+ #define MAXPATHLEN CCHMAXPATH
+ #else
+-#define MAXPATHLEN 1024
++#include <limits.h>
++#define MAXPATHLEN PATH_MAX
+ #endif
+ #endif
+ 
+diff -up ./mozilla/xpcom/typelib/xpidl/xpidl_java.c.path ./mozilla/xpcom/typelib/xpidl/xpidl_java.c
+--- ./mozilla/xpcom/typelib/xpidl/xpidl_java.c.path	2011-08-20 15:18:11.238950255 +0200
++++ ./mozilla/xpcom/typelib/xpidl/xpidl_java.c	2011-08-20 15:20:25.204730325 +0200
+@@ -44,6 +44,7 @@
+ #include "xpidl.h"
+ #include <ctype.h>
+ #include <glib.h>
++#include <limits.h>
+ 
+ #ifdef XP_WIN
+ #include <windef.h>


More information about the scm-commits mailing list