pkgsrc/security/sfs/patches/patch-ab
joerg 1809d5161d Fix enough problems with Clang so that the build hangs in the RPC
compiler, which seems to also occur at least with GCC 4.7's cpp.
2013-10-15 14:48:38 +00:00

13 lines
464 B
Text

$NetBSD: patch-ab,v 1.2 2013/10/15 14:48:38 joerg Exp $
--- async/dnsparse.C.orig 2002-06-26 06:36:31.000000000 +0000
+++ async/dnsparse.C
@@ -323,7 +323,7 @@ dnsparse::tomxlist ()
n_chars += strlen (name) + 1;
ref <mxlist> mxl = refcounted<mxlist, vsize>::alloc
- (offsetof (mxlist, m_mxes[nmx]) + n_chars);
+ (((unsigned int)(size_t)&(((mxlist *)0)->m_mxes[nmx])) + n_chars);
mxrec *mxrecs = mxl->m_mxes;
char *np = (char *) &mxrecs[nmx];