Diego Biurrun
124e28847b
Remove some stray unnecessary ffmpeg references.
13 years ago
Diego Biurrun
046f081b46
configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.
...
Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems
since it causes certain system functions to be hidden on some (BSD) systems.
The solution is to only add the flag on systems that really require it, i.e.
glibc-based ones.
This change makes BSD systems compile out-of-the-box without the need for
adding specific flags manually. It also allows dropping a number of flags
set manually on a file-per-file basis, but were only present to work around
breakage introduced by the presence of _POSIX_C_SOURCE.
Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions
in several places already, so it is preferable to define it globally instead
of littering source files with individual #defines only needed for glibc.
14 years ago
Kirill Gavrilov
b1ac139d89
Handle unicode file names on windows
...
All file names should be in UTF-8 within libavformat.
This is handled by mapping the open() function to an internal one
in os_support.h for windows.
fopen() could be overridden in the same way, but if that would be
used from ffmpeg.c, it would add a dependency on an ff prefixed
internal lavf function.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Max Shakhmetov
a41aebf153
os_support: fix poll() implementation
...
Our poll implementation does not iterate over the pollfd array properly
while setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 9ac2085dbf
)
14 years ago
Max Shakhmetov
9ac2085dbf
os_support: fix poll() implementation
...
Our poll implementation does not iterate over the pollfd array properly
while setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Mans Rullgard
13904b552b
os_support: make poll() fallbacks conditional on CONFIG_NETWORK
...
poll() is only used by networking code, so the fallback should
only be built if networking is enabled. Also remove CONFIG_FFSERVER
condition from the declarations.
This should fix building on systems without poll(), broken
by a8475bbdb6
.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 362d8f7d9e
)
14 years ago
Luca Barbato
d0eb91ad04
os: replace select with poll
...
Select has limitations on the fd values it could accept and silently
breaks when it is reached.
(cherry picked from commit a8475bbdb6
)
14 years ago
Mans Rullgard
362d8f7d9e
os_support: make poll() fallbacks conditional on CONFIG_NETWORK
...
poll() is only used by networking code, so the fallback should
only be built if networking is enabled. Also remove CONFIG_FFSERVER
condition from the declarations.
This should fix building on systems without poll(), broken
by a8475bbdb6
.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Luca Barbato
a8475bbdb6
os: replace select with poll
...
Select has limitations on the fd values it could accept and silently
breaks when it is reached.
14 years ago
Måns Rullgård
7fddac9320
os_support: include some headers only when needed
...
Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
22f73dccad
Move resolve_host() to ffserver.c
...
This deprecated function is only used by ffserver, yet does not have
a prototype visible there.
In the long term, ffserver should be made IPv6-aware. In the meantime,
this change removes cruft from lavf and fixes some warnings in ffserver.
Originally committed as revision 22329 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
38c3b6e73e
inet_aton needs _DARWIN_C_SOURCE on OS X
...
Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
ac11d562e5
Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
...
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
a34fc5e23d
Make our getaddrinfo implementation initialize "struct addrinfo" return
...
value to NULL on errors.
Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
04a2b04b98
Implement gai_strerror() for systems lacking such functionality. Patch
...
by KO Myung-Hun <komh challion net>.
Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
6023d84a2b
Load the proper getaddrinfo functions from ws2_32.dll, if they're present.
...
Patch by Martin Storsjö <martin at martin dot st>.
Originally committed as revision 21443 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
5d629b72cb
Provide a fallback for getnameinfo() also. Patch by Martin Storsjö
...
<$firstname()$firstname,st>.
Originally committed as revision 21150 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
fa053ca725
Provide fallback implementations of getaddrinfo() and freeaddrinfo().
...
Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21145 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
7e43f74a37
Use getaddrinfo(), if available, in resolve_host(). Patch by Martin
...
Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21143 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
b827f4eb47
Currently, the replacement which is used if inet_aton isn't available,
...
only works correctly on little-endian. The attached patch makes it endian
independent.
Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21080 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Dave Yeo
e748e34dd6
struct timeval requires #include <sys/time.h>
...
patch by Dave Yeo daveryeo _at_ telus _dot_ net
Originally committed as revision 14793 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
a964e813a1
use h_addr_list[0] instead of h_addr as this is the posix hostent field name
...
Originally committed as revision 14768 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
7246177d80
ensure we get explicit definition of various _XOPEN_SOURCE functions we use
...
Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
f8cda19ee6
Include poll.h instead of sys/poll.h
...
Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Kostylev
81644c2ee0
Check for the presence of sys/select.h and conditionally #include it.
...
patch by Michael Kostylev, mik niipt ru
Originally committed as revision 11324 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Tom Harper
72d6b1bf1b
Fix compilation of os_support.c for MinGW with --disable-network
...
Patch by Tom Harper <d.thomas.harper <at> gmail.com>
Originally committed as revision 11200 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
087b327287
Include os_support.h only when needed
...
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
6ff3f3e7ce
Check for winsock2.h instead of __MINGW32__
...
Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Benoit Fouet
d72e7d0f24
use sscanf to parse address
...
Originally committed as revision 9756 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Benoit Fouet
109d30e9f1
remove useless check
...
Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Joakim Plate
104d04182d
fix emulated inet_aton so that it fails for invalid addresses
...
patch by elupus: \elupus ecce se/
original thread:
[FFmpeg-devel] [PATCH] emulated inet_aton doesn't fail for invalidaddresses
date: 07/15/2007 12:40 AM
Originally committed as revision 9731 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
1fc44ed69e
MinGW has those include files.
...
Originally committed as revision 9707 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
82e4ac2c97
Move av_gettime() back to lavf/utils.c
...
Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
c993a83131
MinGW has gettimeofday() since mingw-runtime-3.10
...
Originally committed as revision 9705 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
7c37e504f0
Remove OS/2 support
...
Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
45c1011020
Remove localtime_r implementation for systems that don't have it.
...
It is no longer used.
Originally committed as revision 9425 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
3e2e29fb00
r9095 invalidly removed the check for non-winsock
...
Originally committed as revision 9096 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
7235183df9
fix FD_SETSIZE handling in our poll() emulation
...
Originally committed as revision 9095 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
5676d140a9
initial mingw networking support
...
Originally committed as revision 9029 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
ba472aaf01
implement ff_socket_nonblock and use it in networking code
...
Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
4ee10633d2
cosmetics: Remove trailing whitespace and tabs.
...
Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
383eda2348
move resolve_host from tcp.c to os_support.c as it is used widely
...
Originally committed as revision 8834 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
61bc79ec9c
remove possibly broken wince cruft
...
Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
c9fdab0dab
Some more BeOS cleanup: check for arpa/inet.h; declare the prototype for inet_aton if not found; remove barpainet.h as it's not longer needed.
...
Originally committed as revision 8488 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
457b101e42
Make sure we don't try to emulate poll() when it's there if --disable-ffserver... 10l
...
Originally committed as revision 7991 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
36c07acd59
MinGW patch by <koyama AT infocity DOT co DOT jp>, reworked. Removed placeholder for winsock.
...
Originally committed as revision 7990 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
b0c858d834
poll() emulation for BeOS, and maybe MinGW.
...
Originally committed as revision 7987 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
8da9266cea
use the standard INT64_C() macro for 64-bit constants
...
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago