1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/shells/ksh93/files/patch-src-lib-libast-hash-hashalloc.c
Sunpoet Po-Chuan Hsieh ef031629ba - Fix build on i386
PR:		ports/185256
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
2014-02-28 01:49:19 +00:00

21 lines
508 B
C

--- src/lib/libast/hash/hashalloc.c.orig 2013-12-28 22:09:43.000000000 +0100
+++ src/lib/libast/hash/hashalloc.c 2013-12-28 22:43:14.000000000 +0100
@@ -49,6 +49,7 @@
va_list* vp = va;
Hash_region_f region = 0;
void* handle;
+ va_listarg tmpval;
va_start(ap, ref);
@@ -151,7 +152,8 @@
va_copy(*vp, ap);
vp++;
}
- va_copy(ap, va_listval(va_arg(ap, va_listarg)));
+ tmpval = va_listval(va_arg(ap, va_listarg));
+ va_copy(ap, tmpval);
break;
case 0:
if (vp > va)