Skip to content
Snippets Groups Projects
Commit 212ec5fa authored by Martin Storsjö's avatar Martin Storsjö
Browse files

tools: Include io.h for open/read/write/close if unistd.h doesn't exist

parent 3ad9eac5
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,17 @@ ...@@ -6,11 +6,17 @@
* This utility converts compressed Macromedia Flash files to uncompressed ones. * This utility converts compressed Macromedia Flash files to uncompressed ones.
*/ */
#include "config.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#if HAVE_IO_H
#include <io.h>
#endif
#include <zlib.h> #include <zlib.h>
#ifdef DEBUG #ifdef DEBUG
......
...@@ -18,12 +18,18 @@ ...@@ -18,12 +18,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#include <limits.h> #include <limits.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#if HAVE_IO_H
#include <io.h>
#endif
#include "libavutil/time.h" #include "libavutil/time.h"
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment