summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-06-24 09:24:38 +0000
committerFabian Groffen <grobian@gentoo.org>2009-06-24 09:24:38 +0000
commit698920cd428b2fbdbffafba86464525a8e3c0e22 (patch)
tree52791f83ad4c95326d70b7a8df225cdac44dc084 /sys-apps/darwin-miscutils/files
parentMask icu-4.2, let it fix in ~main tree first (#269659). (diff)
downloadhistorical-698920cd428b2fbdbffafba86464525a8e3c0e22.tar.gz
historical-698920cd428b2fbdbffafba86464525a8e3c0e22.tar.bz2
historical-698920cd428b2fbdbffafba86464525a8e3c0e22.zip
Bump, fix Bus Error on 64-bits arches.
Package-Manager: portage-2.2.00.13683-prefix/cvs/SunOS i386
Diffstat (limited to 'sys-apps/darwin-miscutils/files')
-rw-r--r--sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch
new file mode 100644
index 000000000000..77c194e6df9b
--- /dev/null
+++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch
@@ -0,0 +1,17 @@
+grobian@gentoo.org:
+The provided libresolv library is faulty for 64-bits, or this call is
+doing something wrong. It is highly undocumented, so it feels like
+messing around with some pointers is not going to work. Doing this in
+64-bits mode, at least results in a nice Bus Error.
+
+--- shell_cmds-118/w/w.c
++++ shell_cmds-118/w/w.c
+@@ -262,7 +262,7 @@
+ argc -= optind;
+ argv += optind;
+
+-#if !TARGET_OS_EMBEDDED
++#if !defined(TARGET_OS_EMBEDDED) && !defined(__LP64__)
+ if (!(_res.options & RES_INIT))
+ res_init();
+ _res.retrans = 2; /* resolver timeout to 2 seconds per try */