Package: gtkterm
Severity: wishlist
Tags: patch

gtkterm currently fails to build of GNU/kFreeBSD because of a Linuxism.
Please find below a patch to fix that, and that should also make the
package buildable on pure *BSD.


--- gtkterm-0.99.4.orig/src/widgets.c
+++ gtkterm-0.99.4/src/widgets.c
@@ -42,7 +42,14 @@
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
 #include <gdk/gdkkeysyms.h>
-#include <asm/termios.h>       /* For control signals */
+#if defined (__linux__)
+#  include <asm/termios.h>       /* For control signals */
+#endif
+#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) \
+     || defined (__NetBSD__) || defined (__NetBSD_kernel__) \
+     || defined (__OpenBSD__) || defined (__OpenBSD_kernel__) 
+#  include <sys/ttycom.h>        /* For control signals */
+#endif
 #include <vte/vte.h>
 #include <stdio.h>
 #include <string.h>


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Kernel: GNU/kFreeBSD 5.3-7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to