Revision f3ec2d46 libavformat/utils.c

View differences:

libavformat/utils.c
18 18
 */
19 19
#include "avformat.h"
20 20
#include <ctype.h>
21
#ifndef CONFIG_WIN32
22
#include <unistd.h>
23
#include <fcntl.h>
24
#include <sys/time.h>
25
#else
21
#ifdef CONFIG_WIN32
26 22
#define strcasecmp _stricmp
27 23
#include <sys/types.h>
28 24
#include <sys/timeb.h>
25
#elif defined(CONFIG_OS2)
26
#include <string.h>
27
#define strcasecmp stricmp
28
#include <sys/time.h>
29
#else
30
#include <unistd.h>
31
#include <fcntl.h>
32
#include <sys/time.h>
29 33
#endif
30 34
#include <time.h>
31 35

  
......
362 366
    }
363 367
        
364 368
    /* XXX: suppress this hack for redirectors */
365
#ifndef __MINGW32__
369
#ifdef CONFIG_NETWORK
366 370
    if (fmt == &redir_demux) {
367 371
        err = redir_open(ic_ptr, &ic->pb);
368 372
        url_fclose(&ic->pb);

Also available in: Unified diff