Make dtksh build on OpenBSD/powerpc.
authorPascal Stumpf <Pascal.Stumpf@cubes.de>
Tue, 23 Jul 2013 21:19:16 +0000 (23:19 +0200)
committerJon Trulson <jon@radscan.com>
Wed, 24 Jul 2013 00:47:54 +0000 (18:47 -0600)
cde/programs/dtksh/ksh93/src/lib/libast/hash/hashalloc.c
cde/programs/dtksh/ksh93/src/lib/libast/sfio/sfvprintf.c

index e4834209977ee9349bf9c7e35969d62e28fe5def..a31c87ac05004d84b79607e62e098ecc4c06ed5f 100644 (file)
@@ -214,7 +214,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
                        tab->flags |= HASH_STATIC;
                        break;
                case HASH_va_list:
-#if defined(CSRG_BASED) && !defined(__LP64__)
+#if defined(CSRG_BASED) && defined(__i386__)
                        if (vp < &va[elementsof(va)]) *vp++ = ap;
                        ap = va_arg(ap, va_list);
 #else
@@ -230,7 +230,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
                case 0:
                        if (vp > va)
                        {
-#if defined(CSRG_BASED) && !defined(__LP64__)
+#if defined(CSRG_BASED) && defined(__i386__)
                                ap = *--vp;
 #else
                                vp--;
index 7ec0b910744441f1b1533f64363cccbccbbae0d2..bcc1c80696b850d9d7750d18c6581b6787e80743 100644 (file)
@@ -319,7 +319,7 @@ loop_fa :
                default :       /* unknown directive */
                        if(extf)
                        {
-#if defined(CSRG_BASED) && !defined(__LP64__)
+#if defined(CSRG_BASED) && defined(__i386__)
                                va_list savarg = args;  /* is this portable? */
 #else
                                va_list savarg;         /* is this portable?   Sorry .. NO. */