1 |
the_paya 09/01/22 21:05:47 |
2 |
|
3 |
Added: freebsd-sources-7.1-asm.patch |
4 |
freebsd-sources-7.1-subnet-route-pr40133.patch |
5 |
freebsd-sources-7.1-sparc64.patch |
6 |
freebsd-sources-7.1-binutils_link.patch |
7 |
freebsd-sources-7.0-werror.patch |
8 |
freebsd-sources-7.0-tmpfs_whiteout_stub.patch |
9 |
freebsd-sources-7.0-gentoo.patch |
10 |
freebsd-sources-7.1-types.h-fix.patch |
11 |
Log: |
12 |
Import of the 7.1 ebuilds from gentoo-bsd overlay. |
13 |
(Portage version: 2.2_rc23/cvs/FreeBSD i386) |
14 |
|
15 |
Revision Changes Path |
16 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-asm.patch |
17 |
|
18 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-asm.patch?rev=1.1&view=markup |
19 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-asm.patch?rev=1.1&content-type=text/plain |
20 |
|
21 |
Index: freebsd-sources-7.1-asm.patch |
22 |
=================================================================== |
23 |
diff -ur ../src.orig/sys/compat/ndis/winx32_wrap.S ./sys/compat/ndis/winx32_wrap.S |
24 |
--- ../src.orig/sys/compat/ndis/winx32_wrap.S 2006-06-12 22:35:59.000000000 +0200 |
25 |
+++ ./sys/compat/ndis/winx32_wrap.S 2008-03-14 14:00:41.949886084 +0100 |
26 |
@@ -369,7 +369,7 @@ |
27 |
ret |
28 |
|
29 |
ENTRY(x86_setfs) |
30 |
- movl 4(%esp),%fs |
31 |
+ movw 4(%esp),%fs |
32 |
ret |
33 |
|
34 |
ENTRY(x86_gettid) |
35 |
diff -ur ../src.orig/sys/i386/i386/locore.s ./sys/i386/i386/locore.s |
36 |
--- ../src.orig/sys/i386/i386/locore.s 2007-03-24 20:53:22.000000000 +0100 |
37 |
+++ ./sys/i386/i386/locore.s 2008-03-14 14:00:41.946886262 +0100 |
38 |
@@ -358,7 +358,7 @@ |
39 |
pushl %eax |
40 |
testl $PSL_VM,UC_EFLAGS(%eax) |
41 |
jne 1f |
42 |
- movl UC_GS(%eax),%gs /* restore %gs */ |
43 |
+ movw UC_GS(%eax),%gs /* restore %gs */ |
44 |
1: |
45 |
movl $SYS_sigreturn,%eax |
46 |
pushl %eax /* junk to fake return addr. */ |
47 |
@@ -375,7 +375,7 @@ |
48 |
pushl %eax |
49 |
testl $PSL_VM,UC4_EFLAGS(%eax) |
50 |
jne 1f |
51 |
- movl UC4_GS(%eax),%gs /* restore %gs */ |
52 |
+ movw UC4_GS(%eax),%gs /* restore %gs */ |
53 |
1: |
54 |
movl $344,%eax /* 4.x SYS_sigreturn */ |
55 |
pushl %eax /* junk to fake return addr. */ |
56 |
@@ -393,7 +393,7 @@ |
57 |
pushl %eax |
58 |
testl $PSL_VM,SC_PS(%eax) |
59 |
jne 9f |
60 |
- movl SC_GS(%eax),%gs /* restore %gs */ |
61 |
+ movw SC_GS(%eax),%gs /* restore %gs */ |
62 |
9: |
63 |
movl $103,%eax /* 3.x SYS_sigreturn */ |
64 |
pushl %eax /* junk to fake return addr. */ |
65 |
diff -ur ../src.orig/sys/i386/i386/swtch.s ./sys/i386/i386/swtch.s |
66 |
--- ../src.orig/sys/i386/i386/swtch.s 2007-08-22 07:06:14.000000000 +0200 |
67 |
+++ ./sys/i386/i386/swtch.s 2008-03-14 14:00:41.948886237 +0100 |
68 |
@@ -130,7 +130,7 @@ |
69 |
movl %ebp,PCB_EBP(%edx) |
70 |
movl %esi,PCB_ESI(%edx) |
71 |
movl %edi,PCB_EDI(%edx) |
72 |
- movl %gs,PCB_GS(%edx) |
73 |
+ movw %gs,PCB_GS(%edx) |
74 |
pushfl /* PSL */ |
75 |
popl PCB_PSL(%edx) |
76 |
/* Test if debug registers should be saved. */ |
77 |
@@ -301,7 +301,7 @@ |
78 |
/* This must be done after loading the user LDT. */ |
79 |
.globl cpu_switch_load_gs |
80 |
cpu_switch_load_gs: |
81 |
- movl PCB_GS(%edx),%gs |
82 |
+ movw PCB_GS(%edx),%gs |
83 |
|
84 |
/* Test if debug registers should be restored. */ |
85 |
testl $PCB_DBREGS,PCB_FLAGS(%edx) |
86 |
@@ -371,7 +371,7 @@ |
87 |
movl %ebp,PCB_EBP(%ecx) |
88 |
movl %esi,PCB_ESI(%ecx) |
89 |
movl %edi,PCB_EDI(%ecx) |
90 |
- movl %gs,PCB_GS(%ecx) |
91 |
+ movw %gs,PCB_GS(%ecx) |
92 |
pushfl |
93 |
popl PCB_PSL(%ecx) |
94 |
|
95 |
diff -ur ../src.orig/sys/i386/include/cpufunc.h ./sys/i386/include/cpufunc.h |
96 |
--- ../src.orig/sys/i386/include/cpufunc.h 2007-08-09 22:14:35.000000000 +0200 |
97 |
+++ ./sys/i386/include/cpufunc.h 2008-03-14 14:03:09.264377451 +0100 |
98 |
@@ -452,7 +452,7 @@ |
99 |
rfs(void) |
100 |
{ |
101 |
u_int sel; |
102 |
- __asm __volatile("movl %%fs,%0" : "=rm" (sel)); |
103 |
+ __asm __volatile("movw %%fs,%0" : "=rm" (sel)); |
104 |
return (sel); |
105 |
} |
106 |
|
107 |
@@ -468,7 +468,7 @@ |
108 |
rgs(void) |
109 |
{ |
110 |
u_int sel; |
111 |
- __asm __volatile("movl %%gs,%0" : "=rm" (sel)); |
112 |
+ __asm __volatile("movw %%gs,%0" : "=rm" (sel)); |
113 |
return (sel); |
114 |
} |
115 |
|
116 |
@@ -492,7 +492,7 @@ |
117 |
rss(void) |
118 |
{ |
119 |
u_int sel; |
120 |
- __asm __volatile("movl %%ss,%0" : "=rm" (sel)); |
121 |
+ __asm __volatile("movw %%ss,%0" : "=rm" (sel)); |
122 |
return (sel); |
123 |
} |
124 |
|
125 |
@@ -507,13 +507,13 @@ |
126 |
static __inline void |
127 |
load_fs(u_int sel) |
128 |
{ |
129 |
- __asm __volatile("movl %0,%%fs" : : "rm" (sel)); |
130 |
+ __asm __volatile("movw %0,%%fs" : : "rm" (sel)); |
131 |
} |
132 |
|
133 |
static __inline void |
134 |
load_gs(u_int sel) |
135 |
{ |
136 |
- __asm __volatile("movl %0,%%gs" : : "rm" (sel)); |
137 |
+ __asm __volatile("movw %0,%%gs" : : "rm" (sel)); |
138 |
} |
139 |
|
140 |
static __inline void |
141 |
diff -ur ../src.orig/sys/i386/linux/linux_locore.s ./sys/i386/linux/linux_locore.s |
142 |
--- ../src.orig/sys/i386/linux/linux_locore.s 2001-02-25 07:29:01.000000000 +0100 |
143 |
+++ ./sys/i386/linux/linux_locore.s 2008-03-14 14:00:41.949886084 +0100 |
144 |
@@ -8,7 +8,7 @@ |
145 |
NON_GPROF_ENTRY(linux_sigcode) |
146 |
call *LINUX_SIGF_HANDLER(%esp) |
147 |
leal LINUX_SIGF_SC(%esp),%ebx /* linux scp */ |
148 |
- movl LINUX_SC_GS(%ebx),%gs |
149 |
+ movw LINUX_SC_GS(%ebx),%gs |
150 |
movl %esp, %ebx /* pass sigframe */ |
151 |
push %eax /* fake ret addr */ |
152 |
movl $LINUX_SYS_linux_sigreturn,%eax /* linux_sigreturn() */ |
153 |
@@ -20,7 +20,7 @@ |
154 |
call *LINUX_RT_SIGF_HANDLER(%esp) |
155 |
leal LINUX_RT_SIGF_UC(%esp),%ebx /* linux ucp */ |
156 |
leal LINUX_RT_SIGF_SC(%ebx),%ecx /* linux sigcontext */ |
157 |
- movl LINUX_SC_GS(%ecx),%gs |
158 |
+ movw LINUX_SC_GS(%ecx),%gs |
159 |
push %eax /* fake ret addr */ |
160 |
movl $LINUX_SYS_linux_rt_sigreturn,%eax /* linux_rt_sigreturn() */ |
161 |
int $0x80 /* enter kernel with args */ |
162 |
|
163 |
|
164 |
|
165 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-subnet-route-pr40133.patch |
166 |
|
167 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-subnet-route-pr40133.patch?rev=1.1&view=markup |
168 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-subnet-route-pr40133.patch?rev=1.1&content-type=text/plain |
169 |
|
170 |
Index: freebsd-sources-7.1-subnet-route-pr40133.patch |
171 |
=================================================================== |
172 |
Fixes changing the default subnet route after removing an ip address. |
173 |
|
174 |
See: http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=40133 |
175 |
and http://mail-index.netbsd.org/tech-net/2008/12/03/msg000896.html |
176 |
|
177 |
Thanks to Roy Marples. |
178 |
--- sys/netinet/in.c.orig |
179 |
+++ sys/netinet/in.c |
180 |
@@ -858,6 +858,12 @@ |
181 |
error = rtinit(&target->ia_ifa, (int)RTM_ADD, flags); |
182 |
if (!error) |
183 |
target->ia_flags |= IFA_ROUTE; |
184 |
+ else if (error == EEXIST) { |
185 |
+ /* |
186 |
+ * the fact that the route already exists is not an error. |
187 |
+ */ |
188 |
+ error = 0; |
189 |
+ } |
190 |
return error; |
191 |
} |
192 |
|
193 |
|
194 |
|
195 |
|
196 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-sparc64.patch |
197 |
|
198 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-sparc64.patch?rev=1.1&view=markup |
199 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-sparc64.patch?rev=1.1&content-type=text/plain |
200 |
|
201 |
Index: freebsd-sources-7.1-sparc64.patch |
202 |
=================================================================== |
203 |
diff -ur sys.orig/conf/ldscript.sparc64 sys/conf/ldscript.sparc64 |
204 |
--- sys.orig/conf/ldscript.sparc64 2003-06-07 19:23:50 +0100 |
205 |
+++ sys/conf/ldscript.sparc64 2006-10-11 11:10:21 +0100 |
206 |
@@ -1,6 +1,6 @@ |
207 |
/* $FreeBSD: src/sys/conf/ldscript.sparc64,v 1.4.28.1 2008/11/25 02:59:29 kensmith Exp $ */ |
208 |
-OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", |
209 |
- "elf64-sparc") |
210 |
+OUTPUT_FORMAT("elf64-sparc-freebsd", "elf64-sparc-freebsd", |
211 |
+ "elf64-sparc-freebsd") |
212 |
OUTPUT_ARCH(sparc:v9) |
213 |
ENTRY(_start) |
214 |
SEARCH_DIR(/usr/lib); |
215 |
|
216 |
|
217 |
|
218 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-binutils_link.patch |
219 |
|
220 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-binutils_link.patch?rev=1.1&view=markup |
221 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-binutils_link.patch?rev=1.1&content-type=text/plain |
222 |
|
223 |
Index: freebsd-sources-7.1-binutils_link.patch |
224 |
=================================================================== |
225 |
diff -ruN sys.orig/conf/kern.post.mk sys/conf/kern.post.mk |
226 |
--- sys.orig/conf/kern.post.mk 2007-03-23 18:55:59 -0300 |
227 |
+++ sys/conf/kern.post.mk 2008-06-18 19:51:13 -0300 |
228 |
@@ -85,7 +85,9 @@ |
229 |
${FULLKERNEL}: ${SYSTEM_DEP} vers.o |
230 |
@rm -f ${.TARGET} |
231 |
@echo linking ${.TARGET} |
232 |
- ${SYSTEM_LD} |
233 |
+ ${SYSTEM_LD} -o ${.TARGET}.tmp |
234 |
+ @sh $S/tools/gen-ld-u-options ${.TARGET}.tmp > ${.TARGET}.lopt |
235 |
+ ${SYSTEM_LD} "@${.TARGET}.lopt" |
236 |
.if defined(CTFMERGE) |
237 |
${SYSTEM_CTFMERGE} |
238 |
.endif |
239 |
diff -ruN sys.orig/conf/kmod.mk sys/conf/kmod.mk |
240 |
--- sys.orig/conf/kmod.mk 2008-06-18 09:11:53 -0300 |
241 |
+++ sys/conf/kmod.mk 2008-06-18 19:50:01 -0300 |
242 |
@@ -176,7 +176,8 @@ |
243 |
|
244 |
.if ${MACHINE_ARCH} != amd64 |
245 |
${FULLPROG}: ${KMOD}.kld |
246 |
- ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld |
247 |
+ sh ./@/tools/gen-ld-u-options ${KMOD}.kld > ${KMOD}.lopt |
248 |
+ ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld "@${KMOD}.lopt" |
249 |
.if !defined(DEBUG_FLAGS) |
250 |
${OBJCOPY} --strip-debug ${.TARGET} |
251 |
.endif |
252 |
diff -ruN sys.orig/tools/gen-ld-u-options sys/tools/gen-ld-u-options |
253 |
--- sys.orig/tools/gen-ld-u-options 1969-12-31 21:00:00 -0300 |
254 |
+++ sys/tools/gen-ld-u-options 2008-06-18 19:47:56 -0300 |
255 |
@@ -0,0 +1,6 @@ |
256 |
+#!/bin/sh |
257 |
+ |
258 |
+for i in `objdump -h -w $1 | grep set_ | cut -c5- | cut -f1 -d " "` |
259 |
+do |
260 |
+ echo -n " -u __start_$i -u __stop_$i " |
261 |
+done |
262 |
|
263 |
|
264 |
|
265 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-werror.patch |
266 |
|
267 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-werror.patch?rev=1.1&view=markup |
268 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-werror.patch?rev=1.1&content-type=text/plain |
269 |
|
270 |
Index: freebsd-sources-7.0-werror.patch |
271 |
=================================================================== |
272 |
diff -ur ../src.orig/sys/conf/kern.pre.mk ./sys/conf/kern.pre.mk |
273 |
--- ../src.orig/sys/conf/kern.pre.mk 2007-08-08 21:12:06.000000000 +0200 |
274 |
+++ ./sys/conf/kern.pre.mk 2008-03-14 14:10:03.183569137 +0100 |
275 |
@@ -90,7 +90,7 @@ |
276 |
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || \ |
277 |
${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "powerpc" || \ |
278 |
${MACHINE_ARCH} == "sparc64" |
279 |
-WERROR?= -Werror |
280 |
+WERROR?= -Wno-error |
281 |
.endif |
282 |
.endif |
283 |
|
284 |
Only in ./sys/conf: kern.pre.mk.rej |
285 |
Only in ./sys/conf: kern.pre.mk~ |
286 |
diff -ur ../src.orig/sys/conf/kmod.mk ./sys/conf/kmod.mk |
287 |
--- ../src.orig/sys/conf/kmod.mk 2007-07-11 03:20:37.000000000 +0200 |
288 |
+++ ./sys/conf/kmod.mk 2008-03-14 14:11:21.856366378 +0100 |
289 |
@@ -79,7 +79,6 @@ |
290 |
. if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) |
291 |
CFLAGS+= -fno-strict-aliasing |
292 |
. endif |
293 |
-#WERROR?= -Werror |
294 |
.endif |
295 |
CFLAGS+= ${WERROR} |
296 |
CFLAGS+= -D_KERNEL |
297 |
Only in ./sys/conf: kmod.mk.rej |
298 |
Only in ./sys/conf: kmod.mk~ |
299 |
|
300 |
|
301 |
|
302 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-tmpfs_whiteout_stub.patch |
303 |
|
304 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-tmpfs_whiteout_stub.patch?rev=1.1&view=markup |
305 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-tmpfs_whiteout_stub.patch?rev=1.1&content-type=text/plain |
306 |
|
307 |
Index: freebsd-sources-7.0-tmpfs_whiteout_stub.patch |
308 |
=================================================================== |
309 |
diff -ur sys/fs/tmpfs.orig/tmpfs_vnops.c sys/fs/tmpfs/tmpfs_vnops.c |
310 |
--- sys/fs/tmpfs.orig/tmpfs_vnops.c 2008-06-22 12:17:48 -0300 |
311 |
+++ sys/fs/tmpfs/tmpfs_vnops.c 2008-06-28 12:05:10 -0300 |
312 |
@@ -1459,6 +1459,30 @@ |
313 |
return (0); |
314 |
} |
315 |
|
316 |
+ |
317 |
+/* --------------------------------------------------------------------- */ |
318 |
+/* This does absolutely nothing */ |
319 |
+#ifdef GENTOO_LIVECD |
320 |
+static int |
321 |
+tmpfs_whiteout(struct vop_whiteout_args *ap) |
322 |
+{ |
323 |
+ switch (ap->a_flags) { |
324 |
+ case LOOKUP: |
325 |
+ return (0); |
326 |
+ break; |
327 |
+ case CREATE: |
328 |
+ return(EOPNOTSUPP); |
329 |
+ break; |
330 |
+ case DELETE: |
331 |
+ return (0); |
332 |
+ break; |
333 |
+ default: |
334 |
+ return(EOPNOTSUPP); |
335 |
+ } |
336 |
+ return(0); |
337 |
+} |
338 |
+#endif |
339 |
+ |
340 |
/* --------------------------------------------------------------------- */ |
341 |
|
342 |
/* |
343 |
@@ -1484,6 +1508,9 @@ |
344 |
.vop_mkdir = tmpfs_mkdir, |
345 |
.vop_rmdir = tmpfs_rmdir, |
346 |
.vop_symlink = tmpfs_symlink, |
347 |
+#ifdef GENTOO_LIVECD |
348 |
+ .vop_whiteout = tmpfs_whiteout, |
349 |
+#endif |
350 |
.vop_readdir = tmpfs_readdir, |
351 |
.vop_readlink = tmpfs_readlink, |
352 |
.vop_inactive = tmpfs_inactive, |
353 |
|
354 |
|
355 |
|
356 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-gentoo.patch |
357 |
|
358 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-gentoo.patch?rev=1.1&view=markup |
359 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.0-gentoo.patch?rev=1.1&content-type=text/plain |
360 |
|
361 |
Index: freebsd-sources-7.0-gentoo.patch |
362 |
=================================================================== |
363 |
diff -ur ../src.orig/sys/conf/kern.mk ./sys/conf/kern.mk |
364 |
--- ../src.orig/sys/conf/kern.mk 2007-05-24 23:53:42.000000000 +0200 |
365 |
+++ ./sys/conf/kern.mk 2008-03-14 14:37:47.216420518 +0100 |
366 |
@@ -12,7 +12,7 @@ |
367 |
.else |
368 |
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ |
369 |
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ |
370 |
- ${_wundef} ${_Wno_pointer_sign} -fformat-extensions |
371 |
+ ${_wundef} ${_Wno_pointer_sign} |
372 |
.if !defined(WITH_GCC3) |
373 |
_Wno_pointer_sign=-Wno-pointer-sign |
374 |
.endif |
375 |
@@ -36,7 +36,7 @@ |
376 |
# reserved for user applications. |
377 |
# |
378 |
.if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" |
379 |
-CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ |
380 |
+CFLAGS+= -mpreferred-stack-boundary=2 \ |
381 |
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 |
382 |
INLINE_LIMIT?= 8000 |
383 |
.endif |
384 |
Only in ./sys/conf: kern.mk.rej |
385 |
Only in ./sys/conf: kern.mk~ |
386 |
diff -ur ../src.orig/sys/dev/aic7xxx/aicasm/Makefile ./sys/dev/aic7xxx/aicasm/Makefile |
387 |
--- ../src.orig/sys/dev/aic7xxx/aicasm/Makefile 2005-11-21 15:41:10.000000000 +0100 |
388 |
+++ ./sys/dev/aic7xxx/aicasm/Makefile 2008-03-14 14:36:35.859698365 +0100 |
389 |
@@ -14,7 +14,7 @@ |
390 |
SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} |
391 |
CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} |
392 |
DPADD= ${LIBL} |
393 |
-LDADD= -ll |
394 |
+LDADD= -lfl |
395 |
|
396 |
# Correct path for kernel builds |
397 |
# Don't rely on the kernel's .depend file |
398 |
|
399 |
|
400 |
|
401 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-types.h-fix.patch |
402 |
|
403 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-types.h-fix.patch?rev=1.1&view=markup |
404 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-7.1-types.h-fix.patch?rev=1.1&content-type=text/plain |
405 |
|
406 |
Index: freebsd-sources-7.1-types.h-fix.patch |
407 |
=================================================================== |
408 |
Fixes a compile error if XOPEN_SOURCE 600 is defined. |
409 |
|
410 |
See: http://www.mailinglistarchive.com/freebsd-current@×××××××.org/msg15011.html |
411 |
|
412 |
--- sys/sys/types.h.orig |
413 |
+++ sys/sys/types.h |
414 |
@@ -46,7 +46,7 @@ |
415 |
|
416 |
#include <sys/_pthreadtypes.h> |
417 |
|
418 |
-#if __BSD_VISIBLE |
419 |
+#ifndef _POSIX_SOURCE |
420 |
typedef unsigned char u_char; |
421 |
typedef unsigned short u_short; |
422 |
typedef unsigned int u_int; |