Browse Source

Include os_support.h only when needed

Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 18 years ago
parent
commit
087b327287
4 changed files with 3 additions and 2 deletions
  1. +0
    -2
      libavformat/avformat.h
  2. +1
    -0
      libavformat/os_support.c
  3. +1
    -0
      libavformat/tcp.c
  4. +1
    -0
      libavformat/udp.c

+ 0
- 2
libavformat/avformat.h View File

@@ -890,8 +890,6 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size);

#ifdef HAVE_AV_CONFIG_H

#include "os_support.h"

void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);

#ifdef __GNUC__


+ 1
- 0
libavformat/os_support.c View File

@@ -23,6 +23,7 @@
#include "avformat.h"
#include <unistd.h>
#include <fcntl.h>
#include "os_support.h"

#ifndef HAVE_SYS_POLL_H
#ifdef HAVE_WINSOCK2_H


+ 1
- 0
libavformat/tcp.c View File

@@ -21,6 +21,7 @@
#include "avformat.h"
#include <unistd.h>
#include "network.h"
#include "os_support.h"
#include <sys/time.h>

typedef struct TCPContext {


+ 1
- 0
libavformat/udp.c View File

@@ -21,6 +21,7 @@
#include "avformat.h"
#include <unistd.h>
#include "network.h"
#include "os_support.h"

#ifndef IPV6_ADD_MEMBERSHIP
#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP


Loading…
Cancel
Save