File: termio-hurd-kfreebsd.patch

package info (click to toggle)
python-gnatpython 54-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 628 kB
  • ctags: 590
  • sloc: python: 3,056; ansic: 1,477; makefile: 38
file content (27 lines) | stat: -rw-r--r-- 796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
C code wasn't written with GNU/kFreeBSD and hurn in mind
--- a/src/mod_term/terminals.c
+++ b/src/mod_term/terminals.c
@@ -32,6 +32,7 @@
 
 /* First defined some macro to identify easily some systems */
 #if defined (__FreeBSD__) \
+ || defined (__FreeBSD_kernel__) \
  || defined (__OpenBSD__) \
  || defined (__NetBSD__) \
  || defined (__DragonFly__)
@@ -52,10 +53,14 @@
 
 /* On some system termio is either absent or including it will disable termios
    (HP-UX) */
-#if ! defined (__hpux__) && ! defined (FREEBSD) && ! defined (__APPLE__)
+#if ! defined (__hpux__) && ! defined (FREEBSD) && ! defined (__APPLE__) && ! defined (__GNU__)
 #   include <termio.h>
 #endif
 
+#if defined (FREEBSD)
+#   include <pty.h>
+#endif
+
 #include <sys/ioctl.h>
 #include <termios.h>
 #include <fcntl.h>