Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-dpteng_device_cpp,v 1.1 2011/05/22 19:11:42 dholland Exp $
gcc apparently won't accept passing a packed field by reference
nowadays.
--- dpteng/device.cpp~ 2002-08-13 15:02:21.000000000 +0000
+++ dpteng/device.cpp
@@ -4048,7 +4048,15 @@ if (bytesLeft >= bytesNeeded) {
// Return this object's manager SCSI ID instead of tag
basic_P->attachedTo = myMgr_P()->getAddrL();
// Reverse the SCSI address bytes
- reverseBytes(basic_P->attachedTo);
+ {
+ /*
+ * dholland 20110522 gcc apparently won't accept passing a
+ * packed field by reference nowadays.
+ */
+ uLONG tmp = basic_P->attachedTo;
+ reverseBytes(tmp);
+ basic_P->attachedTo = tmp;
+ }
}
// Return the component list size
fromEng_P->insert(compSize);