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.24.patch, 11.8 KB (added by datallah, 8 years ago) |
|
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nspr/config/config.mk nss-3.24/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' -x '*~' nss-3.24.orig/nspr/pr/include/pratom.h nss-3.24/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' -x '*~' nss-3.24.orig/nspr/pr/include/prbit.h nss-3.24/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' -x '*~' nss-3.24.orig/nspr/pr/src/Makefile.in nss-3.24/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' -x '*~' nss-3.24.orig/nspr/pr/src/md/windows/ntmisc.c nss-3.24/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' -x '*~' nss-3.24.orig/nss/cmd/httpserv/httpserv.c nss-3.24/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' -x '*~' nss-3.24.orig/nss/cmd/platlibs.mk nss-3.24/nss/cmd/platlibs.mk
old
|
new
|
|
260 | 260 | endif |
261 | 261 | |
262 | 262 | JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX) |
| 263 | |
| 264 | ifdef WINDDK_BUILD |
| 265 | ifdef USE_64 |
| 266 | OS_LIBS += msvcrt_win2003.obj |
| 267 | else |
| 268 | OS_LIBS += msvcrt_winxp.obj |
| 269 | endif |
| 270 | endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/cmd/selfserv/selfserv.c nss-3.24/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' -x '*~' nss-3.24.orig/nss/coreconf/arch.mk nss-3.24/nss/coreconf/arch.mk
old
|
new
|
|
210 | 210 | # the uname.exe in the MSYS toolkit. |
211 | 211 | # |
212 | 212 | ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH))) |
213 | | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 213 | ifdef WINDDK_BUILD |
| 214 | ifdef USE_64 |
| 215 | OS_RELEASE := 5.2 |
| 216 | else |
| 217 | OS_RELEASE := 5.1 |
| 218 | endif |
| 219 | else |
| 220 | OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) |
| 221 | endif |
214 | 222 | OS_ARCH = WINNT |
215 | 223 | USE_MSYS = 1 |
216 | 224 | ifndef CPU_ARCH |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/coreconf/WIN32.mk nss-3.24/nss/coreconf/WIN32.mk
old
|
new
|
|
132 | 132 | ifeq ($(NSS_ENABLE_WERROR),1) |
133 | 133 | WARNING_CFLAGS += -WX |
134 | 134 | endif |
| 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 |
135 | 143 | ifeq ($(_MSC_VER),$(_MSC_VER_6)) |
136 | 144 | ifndef MOZ_DEBUG_SYMBOLS |
137 | 145 | OS_DLLFLAGS += -PDB:NONE |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/dbm/include/mcom_db.h nss-3.24/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' -x '*~' nss-3.24.orig/nss/lib/dbm/src/mktemp.c nss-3.24/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' -x '*~' nss-3.24.orig/nss/lib/freebl/chacha20.h nss-3.24/nss/lib/freebl/chacha20.h
old
|
new
|
|
8 | 8 | #ifndef FREEBL_CHACHA20_H_ |
9 | 9 | #define FREEBL_CHACHA20_H_ |
10 | 10 | |
11 | | #if defined(_MSC_VER) && _MSC_VER < 1600 |
| 11 | #if defined(_MSC_VER) && (_MSC_VER < 1600 || defined(WINDDK_BUILD)) |
12 | 12 | #include "prtypes.h" |
13 | 13 | typedef PRUint32 uint32_t; |
14 | 14 | typedef PRUint64 uint64_t; |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/freebl/Makefile nss-3.24/nss/lib/freebl/Makefile
old
|
new
|
|
153 | 153 | # The Intel AES assembly code requires Visual C++ 2010. |
154 | 154 | # if $(_MSC_VER) >= 1600 (Visual C++ 2010) |
155 | 155 | ifeq ($(firstword $(sort $(_MSC_VER) 1600)),1600) |
| 156 | ifndef WINDDK_BUILD |
156 | 157 | DEFINES += -DUSE_HW_AES -DINTEL_GCM |
157 | 158 | ASFILES += intel-aes-x86-masm.asm intel-gcm-x86-masm.asm |
158 | 159 | EXTRA_SRCS += intel-gcm-wrap.c |
159 | 160 | ifeq ($(CLANG_CL),1) |
160 | 161 | INTEL_GCM_CLANG_CL = 1 |
161 | 162 | endif |
| 163 | endif |
162 | 164 | endif |
163 | 165 | endif |
164 | 166 | else |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/freebl/mpi/mpcpucache.c nss-3.24/nss/lib/freebl/mpi/mpcpucache.c
old
|
new
|
|
48 | 48 | |
49 | 49 | #elif defined(_MSC_VER) |
50 | 50 | |
| 51 | #ifdef WINDDK_BUILD |
| 52 | #include <ntddk.h> |
| 53 | #else |
51 | 54 | #include <intrin.h> |
| 55 | #endif |
52 | 56 | |
53 | 57 | void freebl_cpuid(unsigned long op, unsigned long *eax, |
54 | 58 | unsigned long *ebx, unsigned long *ecx, |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/freebl/poly1305.c nss-3.24/nss/lib/freebl/poly1305.c
old
|
new
|
|
10 | 10 | |
11 | 11 | #include "poly1305.h" |
12 | 12 | |
13 | | #if defined(_MSC_VER) && _MSC_VER < 1600 |
| 13 | #if defined(_MSC_VER) && (_MSC_VER < 1600 || defined(WINDDK_BUILD)) |
14 | 14 | #include "prtypes.h" |
15 | 15 | typedef PRUint32 uint32_t; |
16 | 16 | typedef PRUint64 uint64_t; |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/softoken/legacydb/config.mk nss-3.24/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' -x '*~' nss-3.24.orig/nss/lib/sqlite/sqlite3.c nss-3.24/nss/lib/sqlite/sqlite3.c
old
|
new
|
|
9153 | 9153 | */ |
9154 | 9154 | #if !defined(SQLITE_DISABLE_INTRINSIC) |
9155 | 9155 | # if defined(_MSC_VER) && _MSC_VER>=1300 |
9156 | | # if !defined(_WIN32_WCE) |
| 9156 | # if defined(WINDDK_BUILD) |
| 9157 | # include <emmintrin.h> |
| 9158 | # pragma intrinsic(_byteswap_ushort) |
| 9159 | # pragma intrinsic(_byteswap_ulong) |
| 9160 | # pragma intrinsic(_ReadWriteBarrier) |
| 9161 | # elif !defined(_WIN32_WCE) |
9157 | 9162 | # include <intrin.h> |
9158 | 9163 | # pragma intrinsic(_byteswap_ushort) |
9159 | 9164 | # pragma intrinsic(_byteswap_ulong) |
… |
… |
|
16862 | 16867 | ** localtime_s(). |
16863 | 16868 | */ |
16864 | 16869 | #if !HAVE_LOCALTIME_R && !HAVE_LOCALTIME_S \ |
16865 | | && defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) |
| 16870 | && defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) \ |
| 16871 | && !defined(WINDDK_BUILD) |
16866 | 16872 | #undef HAVE_LOCALTIME_S |
16867 | 16873 | #define HAVE_LOCALTIME_S 1 |
16868 | 16874 | #endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/ssl/sslimpl.h nss-3.24/nss/lib/ssl/sslimpl.h
old
|
new
|
|
1991 | 1991 | #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1992 | 1992 | #define SSL_GETPID getpid |
1993 | 1993 | #elif defined(WIN32) |
| 1994 | #ifdef WINDDK_BUILD |
| 1995 | #include <windows.h> |
| 1996 | #define SSL_GETPID GetCurrentProcessId |
| 1997 | #else |
1994 | 1998 | extern int __cdecl _getpid(void); |
1995 | 1999 | #define SSL_GETPID _getpid |
| 2000 | #endif |
1996 | 2001 | #else |
1997 | 2002 | #define SSL_GETPID() 0 |
1998 | 2003 | #endif |
-
diff -ur -xdist -x 'WINNT*_OPT.OBJ' -x '*.rej' -x '*.orig' -x '*~' nss-3.24.orig/nss/lib/zlib/config.mk nss-3.24/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!