Package: ser2net
Severity: important
Tags: patch

Hi,

ser2net fails to build on GNU/kFreeBSD because <termio.h> is not
portable and does not exists on such a system. If you look at
/usr/include/termio.h on a GNU/Linux system, you will see it only
contains:
#include <termios.h>
#include <sys/ioctl.h>

As <termios.h> is already included in the source code of ser2net,
<sys/ioctl.h> could be used instead of <termio.h>, and that is portable.

That's the purpose of the patch attached. Could you please add it in
your next upload?

Thanks in advance,
Aurelien

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Status: in BTS
Author: aurel32

--- ser2net-2.2.orig/devcfg.c
+++ ser2net-2.2/devcfg.c
@@ -21,7 +21,7 @@
 
 #include <unistd.h>
 #include <termios.h>
-#include <termio.h>
+#include <sys/ioctl.h>
 #include <sys/types.h>
 #include <stdlib.h>
 #include <string.h>

Reply via email to