summaryrefslogtreecommitdiffstats
path: root/debian/patches/rlfe-kfreebsd.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/rlfe-kfreebsd.diff')
-rw-r--r--debian/patches/rlfe-kfreebsd.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/patches/rlfe-kfreebsd.diff b/debian/patches/rlfe-kfreebsd.diff
new file mode 100644
index 0000000..ce66489
--- /dev/null
+++ b/debian/patches/rlfe-kfreebsd.diff
@@ -0,0 +1,11 @@
+--- a/examples/rlfe/pty.c
++++ b/examples/rlfe/pty.c
+@@ -133,7 +133,7 @@ int f;
+ {
+ if (f < 0)
+ return;
+-#if defined(I_PUSH) && defined(HAVE_SVR4_PTYS) && !defined(sgi) && !defined(linux) && !defined(__osf__) && !defined(M_UNIX)
++#if defined(I_PUSH) && defined(HAVE_SVR4_PTYS) && !defined(sgi) && !defined(linux) && !defined(__osf__) && !defined(M_UNIX) && !defined(__FreeBSD_kernel__)
+ if (ioctl(f, I_PUSH, "ptem"))
+ Panic(errno, "InitPTY: cannot I_PUSH ptem");
+ if (ioctl(f, I_PUSH, "ldterm"))