mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
The autoconf mechanism for determining SHIFT_OFFSET did not work when cross compiling
This commit is contained in:
parent
4ca048da49
commit
aaf90d6efb
2 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
@ -8,6 +8,10 @@ corrections:
|
|||
|
||||
configure option --enable-msglevel did not work with numbers
|
||||
|
||||
The autoconf mechanism for determining SHIFT_OFFSET did not work when
|
||||
cross compiling.
|
||||
Thanks to Max Freisinger from Gentoo for seinding a patch.
|
||||
|
||||
git:
|
||||
Added missing Config/Makefile.DragonFly-2-8-2,
|
||||
Config/config.DragonFly-2-8-2.h
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue