Description: Previous patches
 These changes were in the package before switching to 3.0 (quilt).
 They should get split, but for now this will do.
 .
   * Switch to source format 3.0 (quilt).
Author: Rhonda D'Vine <rhonda@debian.org>, Jasen, Caril Brolebois
Bug-Debian: http://bugs.debian.org/423479
Bug-Debian: http://bugs.debian.org/414173

---

Index: VCS/Makefile
===================================================================
--- VCS.orig/Makefile	2016-01-16 11:28:03.000000000 +0100
+++ VCS/Makefile	2016-01-16 11:28:03.000000000 +0100
@@ -7,7 +7,7 @@
 # called, so you might want to use lazy loading for Xt if your OS supports it.
 
 X_LIBS = -lXt -lX11 # X libs
-XF_LIB = -L/usr/local/lib -lcompface # compface library
+XF_LIB = -L/usr/X11R6/lib -lcompface # compface library
 C_FLAGS = -O
 
 prefix = /usr/local
@@ -25,8 +25,8 @@
 
 install: slrnface
 	mkdir -p $(prefix)/bin
-	mkdir -p $(prefix)/man/man1
+	mkdir -p $(prefix)/share/man/man1
 	mkdir -p $(prefix)/share/slrn/macros
 	cp slrnface $(prefix)/bin
-	cp slrnface.1 $(prefix)/man/man1
+	cp slrnface.1 $(prefix)/share/man/man1
 	cp slrnface.sl $(prefix)/share/slrn/macros
Index: VCS/slrnface.c
===================================================================
--- VCS.orig/slrnface.c	2016-01-16 11:28:03.000000000 +0100
+++ VCS/slrnface.c	2016-01-16 11:28:03.000000000 +0100
@@ -37,6 +37,9 @@
 #include <sys/time.h>
 #include <sys/ioctl.h>
 #include <termio.h>
+#elif defined(__FreeBSD_kernel__)
+#include <bits/ioctls.h>
+#include <termios.h>
 #else
 #include <termios.h>
 #endif
@@ -511,6 +514,10 @@
    else
       cmap = DefaultColormap (d, DefaultScreen (d));
 
+   /* allocate the move cursor -- moving this call to later causes segfaults - dunno why
+    * Fix for http://bugs.debian.org/423479 by Jasen */
+   cursor_move = XCreateFontCursor (d, XC_fleur);
+
    /* X Resources stuff. Suggested by a user's demented mind. */
 
    winchild = get_class_hint (winid, &terminal);
@@ -634,7 +641,6 @@
 
    /* And the last piece of crap. */
 
-   cursor_move = XCreateFontCursor (d, XC_fleur);
    XGrabButton (d, Button1, AnyModifier, win, False,
 	        ButtonPressMask | ButtonReleaseMask | Button1MotionMask,
 	        GrabModeSync, GrabModeAsync, win, cursor_move);
