Allow dtterm to at least allocate a pty on OpenBSD. Display is still mangled, however, and it frequently crashes (64bit issue).

This commit is contained in:
Pascal Stumpf
2012-08-10 14:29:28 +02:00
committed by Jon Trulson
parent 19647809e4
commit 8bbf5a7a1b
3 changed files with 10 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ main(int argc, char **argv)
}
/* init data... */
#if defined(USL) || defined(__uxp__) || defined(linux)
#if defined(USL) || defined(__uxp__) || defined(linux) || defined(CSRG_BASED)
(void) memset((void *) &myaddr_in, (int) '\0', sizeof(myaddr_in));
#else
(void) memset(myaddr_in, '\0', sizeof(myaddr_in));