1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-18 00:53:25 +00:00

The autoconf mechanism for determining SHIFT_OFFSET did not work when cross compiling

This commit is contained in:
Gerhard Rieger 2019-02-24 22:37:08 +01:00
parent 4ca048da49
commit aaf90d6efb
2 changed files with 6 additions and 2 deletions

View file

@ -998,11 +998,11 @@ AC_CACHE_VAL(ac_cv_ispeed_offset,
],
[ac_cv_ispeed_offset=`cat $conftestspeedoff`],
[ac_cv_ispeed_offset=-1],
[ac_cv_ispeed_offset=-1] #!
[ac_cv_ispeed_offset="((unsigned long)&((struct termios *)0)->c_ispeed / sizeof(speed_t))"]
)])
LIBS="$LIBS1"
AC_MSG_RESULT($ac_cv_ispeed_offset)
if test $ac_cv_ispeed_offset -ge 0; then
if test "$ac_cv_ispeed_offset" != -1; then
AC_DEFINE_UNQUOTED(ISPEED_OFFSET, $ac_cv_ispeed_offset)
fi
fi