summaryrefslogtreecommitdiffstats
path: root/sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-08-27 02:51:45 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-08-27 02:51:45 +0800
commitf9447e339a56d396f2f109b312bcdfb32e4d6be9 (patch)
tree6e14ffdb547bbaeef7cf015edce324c92eb0418f /sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c
parent6387e0581c9136115888c8cc4def1288df7f4334 (diff)
downloadmarcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.tar.gz
marcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.tar.zst
marcuscom-ports-f9447e339a56d396f2f109b312bcdfb32e4d6be9.zip
Update to 0.3.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12738 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c')
-rw-r--r--sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c b/sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c
new file mode 100644
index 000000000..e256e9f36
--- /dev/null
+++ b/sysutils/consolekit/files/patch-src_ck-sysdeps-unix.c
@@ -0,0 +1,18 @@
+--- src/ck-sysdeps-unix.c.orig 2008-02-06 22:59:55.000000000 -0500
++++ src/ck-sysdeps-unix.c 2008-02-06 22:52:34.000000000 -0500
+@@ -172,6 +172,15 @@ ck_get_a_console_fd (void)
+
+ fd = -1;
+
++#ifdef __FreeBSD__
++ /* On FreeBSD, try /dev/consolectl first as this will survive
++ * /etc/ttys initialization. */
++ fd = open_a_console ("/dev/consolectl");
++ if (fd >= 0) {
++ goto done;
++ }
++#endif
++
+ #ifdef __sun
+ /* On Solaris, first try Sun VT device. */
+ fd = open_a_console ("/dev/vt/active");