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.2.patch, 8.8 KB (added by datallah, 10 years ago) |
Patch for NSS 3.15.2
|
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nspr/config/config.mk nss-3.15.2-wdk/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' nss-3.15.2/nspr/pr/src/Makefile.in nss-3.15.2-wdk/nspr/pr/src/Makefile.in
old
|
new
|
|
167 | 167 | ifdef NS_USE_GCC |
168 | 168 | OS_LIBS = -ladvapi32 -lwsock32 -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 wsock32.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' nss-3.15.2/nspr/pr/src/md/windows/ntmisc.c nss-3.15.2-wdk/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' nss-3.15.2/nss/cmd/httpserv/httpserv.c nss-3.15.2-wdk/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' nss-3.15.2/nss/cmd/platlibs.mk nss-3.15.2-wdk/nss/cmd/platlibs.mk
old
|
new
|
|
222 | 222 | endif |
223 | 223 | |
224 | 224 | JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX) |
| 225 | |
| 226 | ifdef WINDDK_BUILD |
| 227 | ifdef USE_64 |
| 228 | OS_LIBS += msvcrt_win2003.obj |
| 229 | else |
| 230 | OS_LIBS += msvcrt_winxp.obj |
| 231 | endif |
| 232 | endif |
-
Only in nss-3.15.2-wdk/nss/cmd: platlibs.mk.orig
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/cmd/selfserv/selfserv.c nss-3.15.2-wdk/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' nss-3.15.2/nss/coreconf/arch.mk nss-3.15.2-wdk/nss/coreconf/arch.mk
old
|
new
|
|
235 | 235 | # the uname.exe in the MSYS toolkit. |
236 | 236 | # |
237 | 237 | ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH))) |
238 | | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 238 | ifdef WINDDK_BUILD |
| 239 | ifdef USE_64 |
| 240 | OS_RELEASE := 5.2 |
| 241 | else |
| 242 | OS_RELEASE := 5.1 |
| 243 | endif |
| 244 | else |
| 245 | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 246 | endif |
239 | 247 | OS_ARCH = WINNT |
240 | 248 | USE_MSYS = 1 |
241 | 249 | ifndef CPU_ARCH |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/coreconf/WIN32.mk nss-3.15.2-wdk/nss/coreconf/WIN32.mk
old
|
new
|
|
114 | 114 | OS_CFLAGS += -W3 -nologo -D_CRT_SECURE_NO_WARNINGS \ |
115 | 115 | -D_CRT_NONSTDC_NO_WARNINGS |
116 | 116 | OS_DLLFLAGS += -nologo -DLL -SUBSYSTEM:WINDOWS |
| 117 | ifdef WINDDK_BUILD |
| 118 | OS_CFLAGS += -DWINDDK_BUILD |
| 119 | ifdef USE_64 |
| 120 | OS_LIBS += msvcrt_win2003.obj |
| 121 | else |
| 122 | OS_LIBS += msvcrt_winxp.obj |
| 123 | endif |
| 124 | endif |
117 | 125 | ifeq ($(_MSC_VER),$(_MSC_VER_6)) |
118 | 126 | ifndef MOZ_DEBUG_SYMBOLS |
119 | 127 | OS_DLLFLAGS += -PDB:NONE |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/lib/dbm/include/mcom_db.h nss-3.15.2-wdk/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' nss-3.15.2/nss/lib/dbm/src/mktemp.c nss-3.15.2-wdk/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' nss-3.15.2/nss/lib/freebl/mpi/mpcpucache.c nss-3.15.2-wdk/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' nss-3.15.2/nss/lib/freebl/win_rand.c nss-3.15.2-wdk/nss/lib/freebl/win_rand.c
old
|
new
|
|
12 | 12 | #include <io.h> |
13 | 13 | #include <sys/types.h> |
14 | 14 | #include <sys/stat.h> |
| 15 | #ifdef WINDDK_BUILD |
| 16 | #ifndef stat |
| 17 | #define stat _stat |
| 18 | #endif |
| 19 | #endif |
15 | 20 | #include <stdio.h> |
16 | 21 | #include "prio.h" |
17 | 22 | #include "prerror.h" |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/lib/softoken/legacydb/config.mk nss-3.15.2-wdk/nss/lib/softoken/legacydb/config.mk
old
|
new
|
|
59 | 59 | ifeq ($(OS_TARGET),SunOS) |
60 | 60 | OS_LIBS += -lbsm |
61 | 61 | endif |
| 62 | |
| 63 | ifdef WINDDK_BUILD |
| 64 | ifdef USE_64 |
| 65 | OS_LIBS += msvcrt_win2003.obj |
| 66 | else |
| 67 | OS_LIBS += msvcrt_winxp.obj |
| 68 | endif |
| 69 | endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/lib/sqlite/sqlite3.c nss-3.15.2-wdk/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' nss-3.15.2/nss/lib/ssl/sslimpl.h nss-3.15.2-wdk/nss/lib/ssl/sslimpl.h
old
|
new
|
|
1855 | 1855 | #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1856 | 1856 | #define SSL_GETPID getpid |
1857 | 1857 | #elif defined(WIN32) |
| 1858 | #ifdef WINDDK_BUILD |
| 1859 | #include <windows.h> |
| 1860 | #define SSL_GETPID GetCurrentProcessId |
| 1861 | #else |
1858 | 1862 | extern int __cdecl _getpid(void); |
1859 | 1863 | #define SSL_GETPID _getpid |
| 1864 | #endif |
1860 | 1865 | #else |
1861 | 1866 | #define SSL_GETPID() 0 |
1862 | 1867 | #endif |
-
Only in nss-3.15.2-wdk/nss/lib/ssl: sslimpl.h.orig
diff -ur -xdist -x 'WINNT*_OPT.OBJ' nss-3.15.2/nss/lib/zlib/config.mk nss-3.15.2-wdk/nss/lib/zlib/config.mk
old
|
new
|
|
14 | 14 | PROGRAM = |
15 | 15 | |
16 | 16 | EXTRA_LIBS = $(LIBRARY) |
| 17 | |
| 18 | ifdef WINDDK_BUILD |
| 19 | ifdef USE_64 |
| 20 | OS_LIBS += msvcrt_win2003.obj |
| 21 | else |
| 22 | OS_LIBS += msvcrt_winxp.obj |
| 23 | endif |
| 24 | endif |
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!