patch-tools_ck-get-x11-display-device_c 751 B

12345678910111213141516171819
  1. $OpenBSD: patch-tools_ck-get-x11-display-device_c,v 1.2 2017/02/06 08:15:02 ajacoutot Exp $
  2. From 2020809724b971881df916289a15aafd725c21ae Mon Sep 17 00:00:00 2001
  3. From: Antoine Jacoutot <ajacoutot@openbsd.org>
  4. Date: Wed, 25 Jan 2017 04:24:23 +0100
  5. Subject: [PATCH 1/2] Fix for OpenBSD VT device naming scheme.
  6. --- tools/ck-get-x11-display-device.c.orig Wed Jan 25 03:46:42 2017
  7. +++ tools/ck-get-x11-display-device.c Wed Jan 25 03:47:11 2017
  8. @@ -140,6 +140,8 @@ get_tty_for_display (Display *xdisplay)
  9. #if defined(__NetBSD__)
  10. display = g_strdup_printf ("/dev/ttyE%ld", vt - 1);
  11. +#elif defined(__OpenBSD__)
  12. + display = g_strdup_printf ("/dev/ttyC%ld", vt - 1);
  13. #else
  14. display = g_strdup_printf ("/dev/tty%ld", vt);
  15. #endif