patching: 798053 'TCGETS' not declared
This commit is contained in:
parent
64ea54d4fe
commit
0fd901d485
8
debian/.gitignore
vendored
8
debian/.gitignore
vendored
@ -1 +1,9 @@
|
||||
/mangled
|
||||
/*.debhelper/
|
||||
/files
|
||||
/*.log
|
||||
/*.substvars
|
||||
/libqtermwidget5-0-dev/
|
||||
/libqtermwidget5-0/
|
||||
/qtermwidget5-data/
|
||||
/tmp/
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
qtermwidget (0.6.0+20160108-2) unstable; urgency=medium
|
||||
|
||||
* patching: 798053 'TCGETS' not declared
|
||||
|
||||
-- Alf Gaida <agaida@siduction.org> Thu, 14 Jan 2016 00:47:51 +0100
|
||||
|
||||
qtermwidget (0.6.0+20160108-1) unstable; urgency=medium
|
||||
|
||||
[ Alf Gaida ]
|
||||
|
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
@ -0,0 +1 @@
|
||||
tcgets.patch
|
42
debian/patches/tcgets.patch
vendored
Normal file
42
debian/patches/tcgets.patch
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
Description: fix FTBFS for non-linux
|
||||
.
|
||||
Author: Alf Gaida <agaida@siduction.org>
|
||||
|
||||
---
|
||||
Last-Update: <YYYY-MM-DD>
|
||||
|
||||
--- a/lib/kpty.cpp
|
||||
+++ b/lib/kpty.cpp
|
||||
@@ -117,24 +117,20 @@
|
||||
# define _NEW_TTY_CTRL
|
||||
#endif
|
||||
|
||||
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
|
||||
+#if HAVE_TCGETATTR
|
||||
+# define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode)
|
||||
+#elif defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
|
||||
# define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode)
|
||||
#else
|
||||
-# if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__)
|
||||
-# define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode)
|
||||
-# else
|
||||
-# define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode)
|
||||
-# endif
|
||||
+# define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode)
|
||||
#endif
|
||||
|
||||
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
|
||||
+#if HAVE_TCSETATTR
|
||||
+# define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode)
|
||||
+#elif defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__)
|
||||
# define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode)
|
||||
#else
|
||||
-# if defined(_HPUX_SOURCE) || defined(__CYGWIN__)
|
||||
-# define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode)
|
||||
-# else
|
||||
-# define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode)
|
||||
-# endif
|
||||
+# define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode)
|
||||
#endif
|
||||
|
||||
//#include <kdebug.h>
|
Loading…
x
Reference in New Issue
Block a user