diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-12 13:31:57 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-12 13:31:57 -0800 |
commit | 20af93776dc9c23b9b1ef53ee7260941231c32d1 (patch) | |
tree | 6ba55d0d797b65ab1b4b40e7957ee97a51ede86e /configure | |
parent | c8ccf8b3e18392e857fd22517752777a022949f3 (diff) | |
download | tcpdump-20af93776dc9c23b9b1ef53ee7260941231c32d1.tar.gz |
Use alarm() iff we're not on Windows.
We assume "not on Windows" means "on UN*X", which means we have alarm()
(we don't care about V6 and earlier; 1978 called, they want their UNIX
back). If somebody wants to support something that's neither UN*X nor
Windows, they'll need to contribute support, properly checking for that
other OS.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -5049,13 +5049,12 @@ _ACEOF fi done -for ac_func in setlinebuf alarm +for ac_func in setlinebuf do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" +if test "x$ac_cv_func_setlinebuf" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_SETLINEBUF 1 _ACEOF fi |