mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Make dtksh build on OpenBSD/powerpc.
This commit is contained in:
parent
c50eb571e3
commit
79486301d1
2 changed files with 3 additions and 3 deletions
|
@ -214,7 +214,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
|
||||||
tab->flags |= HASH_STATIC;
|
tab->flags |= HASH_STATIC;
|
||||||
break;
|
break;
|
||||||
case HASH_va_list:
|
case HASH_va_list:
|
||||||
#if defined(CSRG_BASED) && !defined(__LP64__)
|
#if defined(CSRG_BASED) && defined(__i386__)
|
||||||
if (vp < &va[elementsof(va)]) *vp++ = ap;
|
if (vp < &va[elementsof(va)]) *vp++ = ap;
|
||||||
ap = va_arg(ap, va_list);
|
ap = va_arg(ap, va_list);
|
||||||
#else
|
#else
|
||||||
|
@ -230,7 +230,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
|
||||||
case 0:
|
case 0:
|
||||||
if (vp > va)
|
if (vp > va)
|
||||||
{
|
{
|
||||||
#if defined(CSRG_BASED) && !defined(__LP64__)
|
#if defined(CSRG_BASED) && defined(__i386__)
|
||||||
ap = *--vp;
|
ap = *--vp;
|
||||||
#else
|
#else
|
||||||
vp--;
|
vp--;
|
||||||
|
|
|
@ -319,7 +319,7 @@ loop_fa :
|
||||||
default : /* unknown directive */
|
default : /* unknown directive */
|
||||||
if(extf)
|
if(extf)
|
||||||
{
|
{
|
||||||
#if defined(CSRG_BASED) && !defined(__LP64__)
|
#if defined(CSRG_BASED) && defined(__i386__)
|
||||||
va_list savarg = args; /* is this portable? */
|
va_list savarg = args; /* is this portable? */
|
||||||
#else
|
#else
|
||||||
va_list savarg; /* is this portable? Sorry .. NO. */
|
va_list savarg; /* is this portable? Sorry .. NO. */
|
||||||
|
|
Loading…
Reference in a new issue