Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
File nss-wdk-3.17.1.patch, 10.8 KB (added by datallah, 9 years ago) |
Patch for 3.17.1
|
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nspr/config/config.mk nss-3.17.1/nspr/config/config.mk
old
|
new
|
|
132 | 132 | DEFINES += -DMOZ_UNICODE |
133 | 133 | endif |
134 | 134 | |
| 135 | ifdef WINDDK_BUILD |
| 136 | OS_CFLAGS += -DWINDDK_BUILD |
| 137 | ifdef USE_64 |
| 138 | OS_LIBS += msvcrt_win2003.obj |
| 139 | else |
| 140 | OS_LIBS += msvcrt_winxp.obj |
| 141 | endif |
| 142 | endif |
| 143 | |
135 | 144 | #################################################################### |
136 | 145 | # |
137 | 146 | # Configuration for the release process |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nspr/pr/include/pratom.h nss-3.17.1/nspr/pr/include/pratom.h
old
|
new
|
|
78 | 78 | ** the macros and functions won't be compatible and can't be used |
79 | 79 | ** interchangeably. |
80 | 80 | */ |
81 | | #if defined(_WIN32) && !defined(_WIN32_WCE) && \ |
| 81 | #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(WINDDK_BUILD) && \ |
82 | 82 | (!defined(_MSC_VER) || (_MSC_VER >= 1310)) |
83 | 83 | |
84 | 84 | #include <intrin.h> |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nspr/pr/include/prbit.h nss-3.17.1/nspr/pr/include/prbit.h
old
|
new
|
|
13 | 13 | ** Replace compare/jump/add/shift sequence with compiler built-in/intrinsic |
14 | 14 | ** functions. |
15 | 15 | */ |
16 | | #if defined(_WIN32) && (_MSC_VER >= 1300) && \ |
| 16 | #if defined(_WIN32) && (_MSC_VER >= 1300) && !defined(WINDDK_BUILD) && \ |
17 | 17 | (defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)) |
18 | 18 | # include <intrin.h> |
19 | 19 | # pragma intrinsic(_BitScanForward,_BitScanReverse) |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nspr/pr/src/Makefile.in nss-3.17.1/nspr/pr/src/Makefile.in
old
|
new
|
|
167 | 167 | ifdef NS_USE_GCC |
168 | 168 | OS_LIBS = -ladvapi32 -lws2_32 -lwinmm |
169 | 169 | else |
| 170 | ifdef WINDDK_BUILD |
| 171 | ifdef USE_64 |
| 172 | OS_LIBS = advapi32.lib wsock32.lib winmm.lib msvcrt_win2003.obj |
| 173 | else |
| 174 | OS_LIBS = advapi32.lib wsock32.lib winmm.lib msvcrt_winxp.obj |
| 175 | endif |
| 176 | else |
170 | 177 | OS_LIBS = advapi32.lib ws2_32.lib winmm.lib |
171 | 178 | endif |
172 | 179 | endif |
| 180 | endif |
173 | 181 | |
174 | 182 | ifeq ($(OS_ARCH),WINCE) |
175 | 183 | OS_LIBS = ws2.lib |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nspr/pr/src/md/windows/ntmisc.c nss-3.17.1/nspr/pr/src/md/windows/ntmisc.c
old
|
new
|
|
593 | 593 | */ |
594 | 594 | hasFdInheritBuffer = (attr && attr->fdInheritBuffer); |
595 | 595 | if ((envp == NULL) && hasFdInheritBuffer) { |
| 596 | #ifdef WINDDK_BUILD |
| 597 | envp = getenv; |
| 598 | #else |
596 | 599 | envp = environ; |
| 600 | #endif |
597 | 601 | } |
598 | 602 | |
599 | 603 | if (envp != NULL) { |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/cmd/httpserv/httpserv.c nss-3.17.1/nss/cmd/httpserv/httpserv.c
old
|
new
|
|
12 | 12 | #endif |
13 | 13 | |
14 | 14 | #if defined(_WINDOWS) |
| 15 | #ifdef WINDDK_BUILD |
| 16 | #include <windows.h> |
| 17 | #define getpid GetCurrentProcessId |
| 18 | #else |
15 | 19 | #include <process.h> /* for getpid() */ |
16 | 20 | #endif |
| 21 | #endif |
17 | 22 | |
18 | 23 | #include <signal.h> |
19 | 24 | #include <stdlib.h> |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/cmd/platlibs.mk nss-3.17.1/nss/cmd/platlibs.mk
old
|
new
|
|
218 | 218 | endif |
219 | 219 | |
220 | 220 | JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX) |
| 221 | |
| 222 | ifdef WINDDK_BUILD |
| 223 | ifdef USE_64 |
| 224 | OS_LIBS += msvcrt_win2003.obj |
| 225 | else |
| 226 | OS_LIBS += msvcrt_winxp.obj |
| 227 | endif |
| 228 | endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/cmd/selfserv/selfserv.c nss-3.17.1/nss/cmd/selfserv/selfserv.c
old
|
new
|
|
18 | 18 | #endif |
19 | 19 | |
20 | 20 | #if defined(_WINDOWS) |
| 21 | #ifdef WINDDK_BUILD |
| 22 | #include <windows.h> |
| 23 | #define getpid GetCurrentProcessId |
| 24 | #else |
21 | 25 | #include <process.h> /* for getpid() */ |
22 | 26 | #endif |
| 27 | #endif |
23 | 28 | |
24 | 29 | #include <signal.h> |
25 | 30 | #include <stdlib.h> |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/coreconf/arch.mk nss-3.17.1/nss/coreconf/arch.mk
old
|
new
|
|
209 | 209 | # the uname.exe in the MSYS toolkit. |
210 | 210 | # |
211 | 211 | ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH))) |
212 | | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 212 | ifdef WINDDK_BUILD |
| 213 | ifdef USE_64 |
| 214 | OS_RELEASE := 5.2 |
| 215 | else |
| 216 | OS_RELEASE := 5.1 |
| 217 | endif |
| 218 | else |
| 219 | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 220 | endif |
213 | 221 | OS_ARCH = WINNT |
214 | 222 | USE_MSYS = 1 |
215 | 223 | ifndef CPU_ARCH |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/coreconf/WIN32.mk nss-3.17.1/nss/coreconf/WIN32.mk
old
|
new
|
|
128 | 128 | OS_CFLAGS += -W3 -nologo -D_CRT_SECURE_NO_WARNINGS \ |
129 | 129 | -D_CRT_NONSTDC_NO_WARNINGS |
130 | 130 | OS_DLLFLAGS += -nologo -DLL -SUBSYSTEM:WINDOWS |
| 131 | ifdef WINDDK_BUILD |
| 132 | OS_CFLAGS += -DWINDDK_BUILD |
| 133 | ifdef USE_64 |
| 134 | OS_LIBS += msvcrt_win2003.obj |
| 135 | else |
| 136 | OS_LIBS += msvcrt_winxp.obj |
| 137 | endif |
| 138 | endif |
131 | 139 | ifeq ($(_MSC_VER),$(_MSC_VER_6)) |
132 | 140 | ifndef MOZ_DEBUG_SYMBOLS |
133 | 141 | OS_DLLFLAGS += -PDB:NONE |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/dbm/include/mcom_db.h nss-3.17.1/nss/lib/dbm/include/mcom_db.h
old
|
new
|
|
35 | 35 | #ifndef _DB_H_ |
36 | 36 | #define _DB_H_ |
37 | 37 | |
| 38 | #ifdef WINDDK_BUILD |
| 39 | #ifndef stat |
| 40 | #define stat _stat |
| 41 | #endif |
| 42 | #ifndef getpid |
| 43 | #define getpid GetCurrentProcessId |
| 44 | #endif |
| 45 | #endif |
| 46 | |
38 | 47 | #ifndef macintosh |
39 | 48 | #include <sys/types.h> |
40 | 49 | #endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/dbm/src/mktemp.c nss-3.17.1/nss/lib/dbm/src/mktemp.c
old
|
new
|
|
45 | 45 | #include <ctype.h> |
46 | 46 | #include "mcom_db.h" |
47 | 47 | |
48 | | #ifndef _WINDOWS |
49 | | #include <unistd.h> |
50 | | #endif |
51 | | |
52 | 48 | #ifdef _WINDOWS |
| 49 | #ifndef WINDDK_BUILD |
53 | 50 | #include <process.h> |
| 51 | #endif |
54 | 52 | #include "winfile.h" |
| 53 | #else |
| 54 | #include <unistd.h> |
55 | 55 | #endif |
56 | 56 | |
57 | 57 | static int _gettemp(char *path, register int *doopen, int extraFlags); |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/freebl/Makefile nss-3.17.1/nss/lib/freebl/Makefile
old
|
new
|
|
138 | 138 | # The Intel AES assembly code requires Visual C++ 2010. |
139 | 139 | # if $(_MSC_VER) >= 1600 (Visual C++ 2010) |
140 | 140 | ifeq ($(firstword $(sort $(_MSC_VER) 1600)),1600) |
| 141 | ifndef WINDDK_BUILD |
141 | 142 | DEFINES += -DUSE_HW_AES -DINTEL_GCM |
142 | 143 | ASFILES += intel-aes-x86-masm.asm intel-gcm-x86-masm.asm |
143 | 144 | EXTRA_SRCS += intel-gcm-wrap.c |
… |
… |
|
145 | 146 | INTEL_GCM_CLANG_CL = 1 |
146 | 147 | endif |
147 | 148 | endif |
| 149 | endif |
148 | 150 | endif |
149 | 151 | else |
150 | 152 | # -DMP_NO_MP_WORD |
… |
… |
|
163 | 165 | # The Intel AES assembly code requires Visual C++ 2010 (10.0). The _xgetbv |
164 | 166 | # compiler intrinsic function requires Visual C++ 2010 (10.0) SP1. |
165 | 167 | ifeq ($(_MSC_VER_GE_10SP1),1) |
| 168 | ifndef WINDDK_BUILD |
166 | 169 | DEFINES += -DUSE_HW_AES -DINTEL_GCM |
167 | 170 | ASFILES += intel-aes-x64-masm.asm intel-gcm-x64-masm.asm |
168 | 171 | EXTRA_SRCS += intel-gcm-wrap.c |
169 | 172 | endif |
| 173 | endif |
170 | 174 | MPI_SRCS += mpi_amd64.c |
171 | 175 | endif |
172 | 176 | endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/freebl/mpi/mpcpucache.c nss-3.17.1/nss/lib/freebl/mpi/mpcpucache.c
old
|
new
|
|
47 | 47 | |
48 | 48 | #elif defined(_MSC_VER) |
49 | 49 | |
| 50 | #ifdef WINDDK_BUILD |
| 51 | #include <ntddk.h> |
| 52 | #else |
50 | 53 | #include <intrin.h> |
| 54 | #endif |
51 | 55 | |
52 | 56 | void freebl_cpuid(unsigned long op, unsigned long *eax, |
53 | 57 | unsigned long *ebx, unsigned long *ecx, |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/softoken/legacydb/config.mk nss-3.17.1/nss/lib/softoken/legacydb/config.mk
old
|
new
|
|
55 | 55 | -lnspr4 \ |
56 | 56 | $(NULL) |
57 | 57 | endif |
| 58 | |
| 59 | ifdef WINDDK_BUILD |
| 60 | ifdef USE_64 |
| 61 | OS_LIBS += msvcrt_win2003.obj |
| 62 | else |
| 63 | OS_LIBS += msvcrt_winxp.obj |
| 64 | endif |
| 65 | endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/sqlite/sqlite3.c nss-3.17.1/nss/lib/sqlite/sqlite3.c
old
|
new
|
|
14204 | 14204 | ** localtime_s(). |
14205 | 14205 | */ |
14206 | 14206 | #if !defined(HAVE_LOCALTIME_R) && !defined(HAVE_LOCALTIME_S) && \ |
14207 | | defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) |
| 14207 | defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) && \ |
| 14208 | !defined(WINDDK_BUILD) |
14208 | 14209 | #define HAVE_LOCALTIME_S 1 |
14209 | 14210 | #endif |
14210 | 14211 | |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/ssl/sslimpl.h nss-3.17.1/nss/lib/ssl/sslimpl.h
old
|
new
|
|
1925 | 1925 | #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1926 | 1926 | #define SSL_GETPID getpid |
1927 | 1927 | #elif defined(WIN32) |
| 1928 | #ifdef WINDDK_BUILD |
| 1929 | #include <windows.h> |
| 1930 | #define SSL_GETPID GetCurrentProcessId |
| 1931 | #else |
1928 | 1932 | extern int __cdecl _getpid(void); |
1929 | 1933 | #define SSL_GETPID _getpid |
| 1934 | #endif |
1930 | 1935 | #else |
1931 | 1936 | #define SSL_GETPID() 0 |
1932 | 1937 | #endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.orig' nss-3.17.1.orig/nss/lib/zlib/config.mk nss-3.17.1/nss/lib/zlib/config.mk
old
|
new
|
|
18 | 18 | ifeq ($(OS_TARGET),Linux) |
19 | 19 | DEFINES += -DHAVE_UNISTD_H |
20 | 20 | endif |
| 21 | |
| 22 | ifdef WINDDK_BUILD |
| 23 | ifdef USE_64 |
| 24 | OS_LIBS += msvcrt_win2003.obj |
| 25 | else |
| 26 | OS_LIBS += msvcrt_winxp.obj |
| 27 | endif |
| 28 | endif |
| 29 | |
Download in other formats:
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!