e433db1745
---snip--- The security/nmap port (currently at 3.48, but previous versions also had this problem) triggers a bug in GCC 3.3.1 on FreeBSD/sparc64 which causes the compilation of the port to fail. The GCC bug itself is know and AFAIK Thomas Moestl (tmm@freebsd.org) tried to get a fix for it in upstream GCC. However, I didn't see an entry in the release notes of GCC 3.3.2 that would suggest that it has been fixed there. Another port that has a workaround for this particular GCC bug is e.g. x11/XFree86-4-libraries (files/patch-XRes.c). ---snip--- PR: 58698 Submitted by: Marius Strobl <marius@alchemy.franken.de> Approved by: maintainer
13 lines
514 B
C
13 lines
514 B
C
--- nsock/src/nsock_event.c.orig Fri Oct 3 15:33:05 2003
|
|
+++ nsock/src/nsock_event.c Fri Oct 3 15:32:31 2003
|
|
@@ -242,8 +242,9 @@
|
|
int type_code = (int) type;
|
|
unsigned long serial = ms->next_event_serial++;
|
|
unsigned long max_serial_allowed;
|
|
- int shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS;
|
|
+ int shiftbits;
|
|
assert(type <= 3);
|
|
+ shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS;
|
|
|
|
max_serial_allowed = ( 1 << shiftbits ) - 1;
|
|
if (serial == max_serial_allowed ) {
|