From 212ec5faf9a75380594c9b49dc689b7e8be0e2cc Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 28 Aug 2012 22:54:43 +0300 Subject: tools: Include io.h for open/read/write/close if unistd.h doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- tools/pktdumper.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/pktdumper.c') diff --git a/tools/pktdumper.c b/tools/pktdumper.c index d23cd9674f..9243c93373 100644 --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -18,12 +18,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include #include #include #include #include +#if HAVE_UNISTD_H #include +#endif +#if HAVE_IO_H +#include +#endif #include "libavutil/time.h" #include "libavformat/avformat.h" -- cgit v1.2.3