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.20.1.patch, 10.4 KB (added by datallah, 8 years ago) |
Patch for NSS 3.20.1
|
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' nss-3.20.1.vanilla/nspr/config/config.mk nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nspr/pr/include/pratom.h nss-3.20.1/nspr/pr/include/pratom.h
old
|
new
|
|
79 | 79 | ** interchangeably. |
80 | 80 | */ |
81 | 81 | #if defined(_WIN32) && !defined(_WIN32_WCE) && \ |
| 82 | !defined(WINDDK_BUILD) && \ |
82 | 83 | (!defined(_MSC_VER) || (_MSC_VER >= 1310)) |
83 | 84 | |
84 | 85 | #include <intrin.h> |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' nss-3.20.1.vanilla/nspr/pr/include/prbit.h nss-3.20.1/nspr/pr/include/prbit.h
old
|
new
|
|
14 | 14 | ** functions. |
15 | 15 | */ |
16 | 16 | #if defined(_WIN32) && (_MSC_VER >= 1300) && \ |
| 17 | !defined(WINDDK_BUILD) && \ |
17 | 18 | (defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)) |
18 | 19 | # include <intrin.h> |
19 | 20 | # pragma intrinsic(_BitScanForward,_BitScanReverse) |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' nss-3.20.1.vanilla/nspr/pr/src/Makefile.in nss-3.20.1/nspr/pr/src/Makefile.in
old
|
new
|
|
167 | 167 | ifdef NS_USE_GCC |
168 | 168 | OS_LIBS = -ladvapi32 -lws2_32 -lmswsock -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 mswsock.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nspr/pr/src/md/windows/ntmisc.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/cmd/httpserv/httpserv.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/cmd/platlibs.mk nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/cmd/selfserv/selfserv.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/coreconf/arch.mk nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/coreconf/WIN32.mk nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/dbm/include/mcom_db.h nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/dbm/src/mktemp.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/freebl/Makefile nss-3.20.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 |
144 | 145 | ifeq ($(CLANG_CL),1) |
145 | 146 | INTEL_GCM_CLANG_CL = 1 |
146 | 147 | endif |
| 148 | endif |
147 | 149 | endif |
148 | 150 | endif |
149 | 151 | else |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/freebl/mpi/mpcpucache.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/softoken/legacydb/config.mk nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/sqlite/sqlite3.c nss-3.20.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 '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/ssl/sslimpl.h nss-3.20.1/nss/lib/ssl/sslimpl.h
old
|
new
|
|
1956 | 1956 | #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1957 | 1957 | #define SSL_GETPID getpid |
1958 | 1958 | #elif defined(WIN32) |
| 1959 | #ifdef WINDDK_BUILD |
| 1960 | #include <windows.h> |
| 1961 | #define SSL_GETPID GetCurrentProcessId |
| 1962 | #else |
1959 | 1963 | extern int __cdecl _getpid(void); |
1960 | 1964 | #define SSL_GETPID _getpid |
| 1965 | #endif |
1961 | 1966 | #else |
1962 | 1967 | #define SSL_GETPID() 0 |
1963 | 1968 | #endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' nss-3.20.1.vanilla/nss/lib/zlib/config.mk nss-3.20.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!