|
@@ -50,12 +50,19 @@ package unix
|
|
|
#include <linux/netlink.h>
|
|
#include <linux/netlink.h>
|
|
|
#include <linux/rtnetlink.h>
|
|
#include <linux/rtnetlink.h>
|
|
|
#include <linux/icmpv6.h>
|
|
#include <linux/icmpv6.h>
|
|
|
-#include <termios.h>
|
|
|
|
|
|
|
+#include <asm/termbits.h>
|
|
|
#include <time.h>
|
|
#include <time.h>
|
|
|
#include <unistd.h>
|
|
#include <unistd.h>
|
|
|
#include <ustat.h>
|
|
#include <ustat.h>
|
|
|
#include <utime.h>
|
|
#include <utime.h>
|
|
|
|
|
|
|
|
|
|
+#ifdef TCSETS2
|
|
|
|
|
+// On systems that have "struct termios2" use this as type Termios.
|
|
|
|
|
+typedef struct termios2 termios_t;
|
|
|
|
|
+#else
|
|
|
|
|
+typedef struct termios termios_t;
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
enum {
|
|
enum {
|
|
|
sizeofPtr = sizeof(void*),
|
|
sizeofPtr = sizeof(void*),
|
|
|
};
|
|
};
|
|
@@ -396,4 +403,4 @@ const (
|
|
|
|
|
|
|
|
// Terminal handling
|
|
// Terminal handling
|
|
|
|
|
|
|
|
-type Termios C.struct_termios
|
|
|
|
|
|
|
+type Termios C.termios_t
|