From ce2257899647c3980ad1493bdade0d81f2d2f17f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 5 Nov 2015 15:35:04 -0800 Subject: Don't include io.h in Flex scanners - they're not interactive. We don't have any Flex scanners that support an interactive command-line interface, so none of our scanners are, or need to be, interactive. Mark text2pcap's scanner as not interactive. That means none of our scanners should call isatty(), so they don't have any need to include on Windows; remove that include from the Lucent/Ascent text capture scanner. Update a comment to reflect that what matters isn't whether we can read from a terminal or whether we actually do so, what matters is whether they read *interactively* from a terminal (if you want to run text2pcap reading from the standard input and type at it, be my guest). Change-Id: I59979d1fdb37e1913125a400963ff7a3fa6b9bbd Reviewed-on: https://code.wireshark.org/review/11587 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- text2pcap-scanner.l | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'text2pcap-scanner.l') diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l index a860df66a0..0f264f6d1e 100644 --- a/text2pcap-scanner.l +++ b/text2pcap-scanner.l @@ -10,6 +10,11 @@ */ %option nounput +/* + * We don't read interactively from the terminal. + */ +%option never-interactive + %{ /******************************************************************************** -- cgit v1.2.1