Package: vlock
Version: 1.3-10
Severity: important
Tags: patch
User: [EMAIL PROTECTED]
Usertags: kfreebsd

Hi,

here's a small patch which allows vlock to be built on
Debian GNU/kFreeBSD systems. I tested the build on kFreeBSD i386, but
it should also work on amd64.

Running vlock itself works just fine here, too.


HTH, Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
diff -Naur vlock-1.3.orig/signals.c vlock-1.3/signals.c
--- vlock-1.3.orig/signals.c	1999-01-14 01:19:14.000000000 +0100
+++ vlock-1.3/signals.c	2007-08-01 16:18:39.000000000 +0200
@@ -16,7 +16,11 @@
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/consio.h>
+#else
 #include <sys/vt.h>
+#endif
 #include "vlock.h"
 
 
diff -Naur vlock-1.3.orig/terminal.c vlock-1.3/terminal.c
--- vlock-1.3.orig/terminal.c	1999-01-14 01:19:14.000000000 +0100
+++ vlock-1.3/terminal.c	2007-08-01 16:19:02.000000000 +0200
@@ -15,7 +15,11 @@
 #include <unistd.h>
 #include <termios.h>
 #include <sys/ioctl.h>
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/consio.h>
+#else
 #include <sys/vt.h>
+#endif
 #include "vlock.h"
 
 
diff -Naur vlock-1.3.orig/vlock.c vlock-1.3/vlock.c
--- vlock-1.3.orig/vlock.c	2007-08-01 16:19:19.000000000 +0200
+++ vlock-1.3/vlock.c	2007-08-01 16:18:55.000000000 +0200
@@ -17,7 +17,11 @@
 #include <getopt.h>
 #include <termios.h>
 #include <signal.h>
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/consio.h>
+#else
 #include <sys/vt.h>
+#endif
 #include <sys/kd.h>
 #include <sys/ioctl.h>
 #include "vlock.h"

Attachment: signature.asc
Description: Digital signature

Reply via email to