Backport to DOS.