summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-12 13:31:57 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-12 13:31:57 -0800
commit20af93776dc9c23b9b1ef53ee7260941231c32d1 (patch)
tree6ba55d0d797b65ab1b4b40e7957ee97a51ede86e /configure
parentc8ccf8b3e18392e857fd22517752777a022949f3 (diff)
downloadtcpdump-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-xconfigure9
1 files changed, 4 insertions, 5 deletions
diff --git a/configure b/configure
index acf2d14c..17de93f0 100755
--- a/configure
+++ b/configure
@@ -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