4
4
## DP: GNU/kFreeBSD support. bz#356011
5
5
## DP: Added Hurd support.
7
Index: nss-3.14.1/mozilla/security/coreconf/Linux.mk
7
Index: nss-3.14.3/mozilla/security/coreconf/Linux.mk
8
8
===================================================================
9
--- nss-3.14.1.orig/mozilla/security/coreconf/Linux.mk 2012-11-13 19:14:07.000000000 -0600
10
+++ nss-3.14.1/mozilla/security/coreconf/Linux.mk 2013-01-10 16:54:23.000000000 -0600
9
--- nss-3.14.3.orig/mozilla/security/coreconf/Linux.mk 2013-03-13 11:17:44.000000000 -0500
10
+++ nss-3.14.3/mozilla/security/coreconf/Linux.mk 2013-03-13 11:20:33.000000000 -0500
15
15
-ifeq ($(OS_RELEASE),2.0)
16
16
+ifeq ($(KERNEL)-$(OS_RELEASE),linux-2.0)
17
17
OS_REL_CFLAGS += -DLINUX2_0
18
18
MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH)
21
21
# -ansi on platforms like Android where the system headers are C99 and do
22
22
# not build with -ansi.
23
STANDARDS_CFLAGS = -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE
23
STANDARDS_CFLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE
24
24
-OS_CFLAGS = $(STANDARDS_CFLAGS) $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR
25
25
+OS_CFLAGS = $(STANDARDS_CFLAGS) $(DSO_CFLAGS) $(OS_REL_CFLAGS) $(ARCHFLAG) -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DHAVE_STRERROR
26
26
+ifeq ($(KERNEL),linux)
60
48
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH)
63
Index: nss-3.14.1/mozilla/security/coreconf/arch.mk
51
Index: nss-3.14.3/mozilla/security/coreconf/arch.mk
64
52
===================================================================
65
--- nss-3.14.1.orig/mozilla/security/coreconf/arch.mk 2012-05-03 04:42:57.000000000 -0500
66
+++ nss-3.14.1/mozilla/security/coreconf/arch.mk 2013-01-10 16:54:23.000000000 -0600
53
--- nss-3.14.3.orig/mozilla/security/coreconf/arch.mk 2013-03-13 11:17:44.000000000 -0500
54
+++ nss-3.14.3/mozilla/security/coreconf/arch.mk 2013-03-13 11:17:44.000000000 -0500
67
55
@@ -122,6 +122,14 @@
68
56
ifneq ($(words $(OS_RELEASE)),1)
69
57
OS_RELEASE := $(word 1,$(OS_RELEASE)).$(word 2,$(OS_RELEASE))
82
Index: nss-3.14.1/mozilla/security/coreconf/config.mk
70
Index: nss-3.14.3/mozilla/security/coreconf/config.mk
83
71
===================================================================
84
--- nss-3.14.1.orig/mozilla/security/coreconf/config.mk 2012-11-13 19:14:07.000000000 -0600
85
+++ nss-3.14.1/mozilla/security/coreconf/config.mk 2013-01-10 16:54:23.000000000 -0600
72
--- nss-3.14.3.orig/mozilla/security/coreconf/config.mk 2013-03-13 11:17:44.000000000 -0500
73
+++ nss-3.14.3/mozilla/security/coreconf/config.mk 2013-03-13 11:23:38.000000000 -0500
87
75
#######################################################################
89
77
TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
90
- AIX RISCOS WINNT WIN95 Linux
91
+ AIX RISCOS WINNT WIN95 Linux GNU GNU_%
78
- AIX RISCOS WINNT WIN95 Linux Android
79
+ AIX RISCOS WINNT WIN95 Linux Android GNU GNU_%
93
81
ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
94
82
include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
95
Index: nss-3.14.1/mozilla/security/nss/lib/freebl/unix_rand.c
83
Index: nss-3.14.3/mozilla/security/nss/lib/freebl/unix_rand.c
96
84
===================================================================
97
--- nss-3.14.1.orig/mozilla/security/nss/lib/freebl/unix_rand.c 2013-01-10 16:52:58.000000000 -0600
98
+++ nss-3.14.1/mozilla/security/nss/lib/freebl/unix_rand.c 2013-01-10 16:54:23.000000000 -0600
85
--- nss-3.14.3.orig/mozilla/security/nss/lib/freebl/unix_rand.c 2013-03-13 11:17:44.000000000 -0500
86
+++ nss-3.14.3/mozilla/security/nss/lib/freebl/unix_rand.c 2013-03-13 11:17:44.000000000 -0500
99
87
@@ -156,7 +156,8 @@
101
89
#if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) \
106
94
#include <sys/times.h>
108
96
#define getdtablesize() sysconf(_SC_OPEN_MAX)
109
Index: nss-3.14.1/mozilla/security/nss/lib/softoken/softoken.h
97
Index: nss-3.14.3/mozilla/security/nss/lib/softoken/softoken.h
110
98
===================================================================
111
--- nss-3.14.1.orig/mozilla/security/nss/lib/softoken/softoken.h 2012-04-25 09:50:10.000000000 -0500
112
+++ nss-3.14.1/mozilla/security/nss/lib/softoken/softoken.h 2013-01-10 16:54:23.000000000 -0600
99
--- nss-3.14.3.orig/mozilla/security/nss/lib/softoken/softoken.h 2013-03-13 11:17:44.000000000 -0500
100
+++ nss-3.14.3/mozilla/security/nss/lib/softoken/softoken.h 2013-03-13 11:17:44.000000000 -0500
115
103
#define CHECK_FORK_MIXED
120
108
#define CHECK_FORK_PTHREAD
122
Index: nss-3.14.1/mozilla/security/nss/lib/ssl/sslmutex.c
110
Index: nss-3.14.3/mozilla/security/nss/lib/ssl/sslmutex.c
123
111
===================================================================
124
--- nss-3.14.1.orig/mozilla/security/nss/lib/ssl/sslmutex.c 2012-04-25 09:50:12.000000000 -0500
125
+++ nss-3.14.1/mozilla/security/nss/lib/ssl/sslmutex.c 2013-01-10 16:54:23.000000000 -0600
112
--- nss-3.14.3.orig/mozilla/security/nss/lib/ssl/sslmutex.c 2013-03-13 11:17:44.000000000 -0500
113
+++ nss-3.14.3/mozilla/security/nss/lib/ssl/sslmutex.c 2013-03-13 11:17:44.000000000 -0500
126
114
@@ -57,7 +57,7 @@
127
115
return SECSuccess;
133
121
#include <unistd.h>
134
122
#include <fcntl.h>
135
Index: nss-3.14.1/mozilla/security/nss/lib/ssl/sslmutex.h
123
Index: nss-3.14.3/mozilla/security/nss/lib/ssl/sslmutex.h
136
124
===================================================================
137
--- nss-3.14.1.orig/mozilla/security/nss/lib/ssl/sslmutex.h 2012-04-25 09:50:12.000000000 -0500
138
+++ nss-3.14.1/mozilla/security/nss/lib/ssl/sslmutex.h 2013-01-10 16:54:23.000000000 -0600
125
--- nss-3.14.3.orig/mozilla/security/nss/lib/ssl/sslmutex.h 2013-03-13 11:17:44.000000000 -0500
126
+++ nss-3.14.3/mozilla/security/nss/lib/ssl/sslmutex.h 2013-03-13 11:17:44.000000000 -0500
139
127
@@ -51,7 +51,7 @@
141
129
typedef int sslPID;