--- base/runtime/c-libs/posix-tty/tcgetattr.c.orig Thu Jun 1 20:33:46 2000 +++ base/runtime/c-libs/posix-tty/tcgetattr.c Fri Jun 9 12:33:48 2006 @@ -40,7 +40,7 @@ /* allocate the vector; note that this might cause a GC */ cc = ML_AllocString (msp, NCCS); - memcpy (PTR_MLtoC(void, cc), data.c_cc, NCCS); + memcpy (GET_SEQ_DATAPTR(void, cc), data.c_cc, NCCS); ML_AllocWrite (msp, 0, MAKE_DESC(DTAG_record, 7)); ML_AllocWrite (msp, 1, iflag); --- base/runtime/c-libs/posix-tty/tcsetattr.c.orig Thu Jun 1 20:33:46 2000 +++ base/runtime/c-libs/posix-tty/tcsetattr.c Fri Jun 9 12:33:59 2006 @@ -30,7 +30,7 @@ data.c_oflag = REC_SELWORD(termio_rep, 1); data.c_cflag = REC_SELWORD(termio_rep, 2); data.c_lflag = REC_SELWORD(termio_rep, 3); - memcpy (data.c_cc, REC_SELPTR(void, termio_rep, 4), NCCS); + memcpy (data.c_cc, GET_SEQ_DATAPTR(void, REC_SEL(termio_rep, 4)), NCCS); sts = cfsetispeed (&data, REC_SELWORD(termio_rep, 5)); if (sts < 0) return RAISE_SYSERR(msp, sts);