Subject: re: ksh lossage on sparc64
To: Martin Husemann <martin@duskware.de>
From: matthew green <mrg@eterna.com.au>
List: tech-toolchain
Date: 11/20/2000 12:18:31
this diff for me creates a working ksh:
Index: jobs.c
===================================================================
RCS file: /cvsroot/basesrc/bin/ksh/jobs.c,v
retrieving revision 1.6
diff -p -r1.6 jobs.c
*** jobs.c 2000/11/02 01:10:08 1.6
--- jobs.c 2000/11/20 01:16:22
*************** j_waitj(j, flags, where)
*** 1174,1179 ****
--- 1174,1184 ----
const char *where;
{
int rv;
+ #ifdef __sparc64__
+ int f;
+
+ *(volatile int *)&f = j->state;
+ #endif
/*
* No auto-notify on the job we are waiting on.