From 212ec5faf9a75380594c9b49dc689b7e8be0e2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 28 Aug 2012 22:54:43 +0300 Subject: [PATCH] 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/cws2fws.c | 6 ++++++ tools/pktdumper.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tools/cws2fws.c b/tools/cws2fws.c index 68f7953b56..74588c10a6 100644 --- a/tools/cws2fws.c +++ b/tools/cws2fws.c @@ -6,11 +6,17 @@ * This utility converts compressed Macromedia Flash files to uncompressed ones. */ +#include "config.h" #include #include #include #include +#if HAVE_UNISTD_H #include +#endif +#if HAVE_IO_H +#include +#endif #include #ifdef DEBUG 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"