1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 06:22:58 +00:00

MacOSX port: detect TABDLY shift problem with autoconf

This commit is contained in:
Gerhard Rieger 2008-09-26 13:19:49 +02:00
parent 8287a65d1a
commit 097608e8a9
4 changed files with 23 additions and 5 deletions

View file

@ -37,13 +37,15 @@ int xioinitialize(void) {
/* some assertions about termios */
#if WITH_TERMIOS
#ifdef CRDLY
#if defined(CRDLY) && CRDLY_SHIFT >= 0
assert(3 << opt_crdly.arg3 == CRDLY);
#endif
#ifdef TABDLY
#if defined(TABDLY) && TABDLY_SHIFT >= 0
assert(3 << opt_tabdly.arg3 == TABDLY);
#endif
#if CSIZE_SHIFT >= 0
assert(3 << opt_csize.arg3 == CSIZE);
#endif
{
union {
struct termios termarg;