aboutsummaryrefslogtreecommitdiffstats
path: root/comms/remserial/files/patch-stty.c
blob: 89e948cc15025db5f5259a811c9a35067f6ca897 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- ./stty.c.orig   2011-01-05 10:31:12.000000000 +0100
+++ ./stty.c    2011-01-05 10:33:33.000000000 +0100
@@ -29,6 +29,37 @@
 #define RFLG   4
 #define BFLG   5
 
+#ifdef __FreeBSD__
+#define BSDLY  0020000
+#define IUCLC  0001000
+#define OFILL  0000100
+#define OFDEL  0000200
+#define NLDLY  0000400
+#define BS0    0000000
+#define BS1    0020000
+#define CR0    0000000
+#define CR1    0001000
+#define CR2    0002000
+#define CR3    0003000
+#define CRDLY  0003000
+#define FF0    0000000
+#define FF1    0100000
+#define FFDLY  0100000
+#define NL0    0000000
+#define NL1    0000400
+#define TAB1   0004000
+#define TAB2   0010000
+#define VT0    0000000
+#define VT1    0040000
+#define VTDLY  0040000
+#endif
+
 extern int errno;
 
 static struct sttyset {
@@ -91,7 +122,7 @@
    { "inlcr",  IFLG,   INLCR,      INLCR   },
    { "igncr",  IFLG,   IGNCR,      IGNCR   },
    { "icrnl",  IFLG,   ICRNL,      ICRNL   },
-#ifdef IUCLC   // Missing on OSX, FreeBSD
+#ifdef __FreeBSD__ // Missing on OSX, FreeBSD
    { "iuclc",  IFLG,   IUCLC,      IUCLC   },
 #endif
    { "ixon",   IFLG,   IXON,       IXON    },