diff options
author | tobez <tobez@FreeBSD.org> | 2007-10-27 02:31:35 +0800 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2007-10-27 02:31:35 +0800 |
commit | 8d90927bf9fcfd532ac284c0e0acf72e119fb9ec (patch) | |
tree | 0f91db979b75eb04204f4a49c1871c617ac6f892 /net-mgmt/snmp++/files | |
parent | df79bd7aebb1ad5b0aeb7d419cd476355c5ad097 (diff) | |
download | freebsd-ports-gnome-8d90927bf9fcfd532ac284c0e0acf72e119fb9ec.tar.gz freebsd-ports-gnome-8d90927bf9fcfd532ac284c0e0acf72e119fb9ec.tar.zst freebsd-ports-gnome-8d90927bf9fcfd532ac284c0e0acf72e119fb9ec.zip |
Fix on 64-bit architerctures. Bump portrevision.
Approved by: maintainer
Sponsored by: catpipe Systems ApS
Diffstat (limited to 'net-mgmt/snmp++/files')
-rw-r--r-- | net-mgmt/snmp++/files/patch-asn1.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/snmp++/files/patch-asn1.cpp b/net-mgmt/snmp++/files/patch-asn1.cpp new file mode 100644 index 000000000000..a5ede28c23bf --- /dev/null +++ b/net-mgmt/snmp++/files/patch-asn1.cpp @@ -0,0 +1,14 @@ +--- asn1.cpp.orig 2007-10-26 20:24:08.000000000 +0200 ++++ asn1.cpp 2007-10-26 20:25:34.000000000 +0200 +@@ -550,8 +550,9 @@ unsigned char * asn_parse_length( unsign + memcpy((char *)length, (char *)data + 1, (int)lengthbyte); + *length = ntohl(*length); + // ntohl even on ALPHA (DEC/COMPAQ) 64bit platforms works on 32bit int, +- // whereas long is 64bit - therefore: +-#ifdef __osf__ ++ // whereas long is 64bit. The same is true for FreeBSD (and probably ++ // for lots of other platforms). Therefore: ++#if defined(__osf__) || defined(__FreeBSD__) + *length >>= (8 * ((sizeof(int)) - lengthbyte)); + #else + *length >>= (8 * ((sizeof(long)) - lengthbyte)); |