summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjmc <jmc>2002-03-15 00:22:42 +0000
committerjmc <jmc>2002-03-15 00:22:42 +0000
commit173096485fcbd873e667fe94e6e48c44abcbfb72 (patch)
tree178231c9ca6a83be0bb47d9dcc17f9ef54978f45 /comms
parentb7717d32aaf4281a79b1da690d8a09a7d445004f (diff)
downloadpkgsrc-173096485fcbd873e667fe94e6e48c44abcbfb72.tar.gz
Port for powerpc (or any other arch which enforces alignment).
This code was assuming it could copy double's in/out of char *'s with just casts and normal copies. This blows up on anything which enforces alignments. Change the generic case for the ATOM to just have a special double field. For the serialization routines memcpy the double in and provide a union to memcpy it out to that also contains a single double value. This ensures alignment is correct and it won't SIGBUS anymore. Bump pkg to nb1
Diffstat (limited to 'comms')
0 files changed, 0 insertions, 0 deletions