contributed patch for SCO 6