1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

From the submitter:

---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
This commit is contained in:
Alexander Leidinger 2003-10-30 14:09:29 +00:00
parent b97e9dc92d
commit e433db1745
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92643

View File

@ -0,0 +1,13 @@
--- 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 ) {