$NetBSD$

--- src/tools/qstring.h.orig	2007-02-02 14:01:05.000000000 +0000
+++ src/tools/qstring.h
@@ -194,7 +194,7 @@
     char latin1() const { return ucs > 0xff ? 0 : (char) ucs; }
     ushort unicode() const { return ucs; }
 #ifdef Q_NO_PACKED_REFERENCE
-    ushort &unicode() { return *(&ucs); }
+    ushort &unicode() { return *(ushort *)(&ucs); }
 #else
     ushort &unicode() { return ucs; }
 #endif
