$NetBSD: patch-ar,v 1.3 2008/11/23 22:06:49 jmcneill Exp $ --- daemon/gdmconsolekit.c.orig 2008-11-23 14:20:12.000000000 -0500 +++ daemon/gdmconsolekit.c 2008-11-23 14:21:02.000000000 -0500 @@ -457,7 +457,11 @@ char *device; /* FIXME: how does xorg construct this */ +#ifdef __NetBSD__ + device = g_strdup_printf ("/dev/ttyE%d", d->vt - 1); +#else device = g_strdup_printf ("/dev/tty%d", d->vt); +#endif add_param_string (&iter_struct, "x11-display-device", device); g_free (device); }