Steve Lhomme
c02a90717c
compat: the official way to include WSA functions is with winsock2.h
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Jean-Baptiste Kempf
95b7bf976a
compat: ffsll use long long int as argument
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Rémi Denis-Courmont
fde9226ab2
win32: do not pretend to implement ftrylockfile()
This is not currently used anywhere in the code base anyway.
10 years ago
Rémi Denis-Courmont
90e14b835b
compat: add sincos() and sincosf() replacements
10 years ago
Rémi Denis-Courmont
73e946f530
compat: fix test for tree functions
The standard functions are tdelete, tfind, tsearch and twalk. Testing
for non-standard tdestroy does not work properly: it leads to false
negative.
10 years ago
Steve Lhomme
6766a8903b
compat: add realpath used by test_media_subitems()
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Denis Charmet
0ca74870c4
Use WSARecv instead of WSARecvFrom when the from field is empty
Windows will throw WSAEFAULT if WSARecvFrom is called with a NULL lpFrom and/or fromlen
Close #17163
10 years ago
Rémi Denis-Courmont
d157ba1f08
memrchr: fix compilation
10 years ago
Jean-Baptiste Kempf
cfde608bb7
memrchr: try to fix macOS compilation
10 years ago
Jean-Baptiste Kempf
a051de1ac6
compat: add memrchr replacement
This is a very simple replacement. It probably can be better. Feel free.
10 years ago
Richard Diamond
810702d4ce
compat: fix inet_pton declaration
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Steve Lhomme
f395afc090
compat: gettimeofday: unused variable
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Hugo Beauzée-Luyssen
d9c9233312
compat: Provide a gettimeofday replacement
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Jean-Baptiste Kempf
50c5dc0a99
Compat: remove trailing spaces
11 years ago
Rémi Denis-Courmont
3f72fbddb7
compat: replace recvmsg()
11 years ago
Rémi Denis-Courmont
95ba2e83f1
compat: replace sendmsg()
11 years ago
KO Myung-Hun
c84a1a1aba
src: os2: move gai_strerror() to compat
This fixes the following linkage error.
-----
CCLD libhttps_plugin.la
weakld: error: Unresolved symbol (UNDEF) '_gai_strerror'.
weakld: info: The symbol is referenced by:
P:\tmp\ldconv_libvlc_http_la-transport_o_64fd5671f455159d80.obj
Ignoring unresolved externals reported from weak prelinker.
Error! E2028: _gai_strerror is an undefined reference
file P:/tmp\ldconv_libvlc_http_la-transport_o_64fd5671f455159d80.obj(ldconv_libvlc_http_la-transport_o_64fd5671f455159d80.obj): undefined symbol _gai_strerror
make.exe[4]: *** [libhttps_plugin.la] Error 1
-----
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years ago
KO Myung-Hun
ed7287c042
compat: remove 'const' from the prototype of timegm().
The prototype of timegm() does not have 'const'.
This fixes compilation on OS/2 which have only a declaration of
timegm().
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years ago
Rémi Denis-Courmont
903664b8e5
compat: replace timegm()
11 years ago
Rémi Denis-Courmont
77874cb23e
compat: missing #include
11 years ago
Hugo Beauzée-Luyssen
0f75899264
compat: Fix warning
11 years ago
Hugo Beauzée-Luyssen
12ee303dca
compat: test: Fix strnstr tests
11 years ago
Hugo Beauzée-Luyssen
71001a361d
test: Provide tests for our strnstr implementation
11 years ago
Rémi Denis-Courmont
383a9210b0
compat: add timespec_get() replacement
11 years ago
Hugo Beauzée-Luyssen
56fd4ad559
compat: Fix strnstr implementation
11 years ago
Rémi Denis-Courmont
32adc07bd6
strnstr: needle cannot be NULL
11 years ago
Francois Cartegnie
db41ce0a16
compat: fix strnstr
need to wake up sometimes :/
11 years ago
Francois Cartegnie
4c1238c772
compat: add strnstr
11 years ago
Hannes Domani
8b7059359c
compat: cancel association of network events before close
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years ago
Rémi Denis-Courmont
5abe21ee48
vasprintf: missing #include
11 years ago
Rémi Denis-Courmont
67888a9779
Add replacement for GNU ffsll()
11 years ago
Rémi Denis-Courmont
73ef184d3e
localtime_r: fix Annex K usage
11 years ago
Rémi Denis-Courmont
74337dd2f2
compat: reimplement and make poll() alertable on Windows
11 years ago
Rémi Denis-Courmont
80170ba796
fixups: add missing poll() event flags
11 years ago
Rémi Denis-Courmont
d60d5102b8
compat: fix localtime_r() replacement
- Do not clobber thread-specific state on Windows
- Be thread-safe on non-Windows
12 years ago
Rémi Denis-Courmont
4716a65fc6
freeaddrinfo: rewrite as iterative
12 years ago
KO Myung-Hun
3180272a56
libstream_out_standard_plugin: fix linkage on OS/2
Move freeaddrinfo() to compat/.
-----
CCLD libstream_out_standard_plugin.la
weakld: error: Unresolved symbol (UNDEF) '_freeaddrinfo'.
weakld: info: The symbol is referenced by:
P:\tmp\ldconv_libstream_out_standard_plugin_48c454704dac1660d0.obj
Ignoring unresolved externals reported from weak prelinker.
Error! E2028: _freeaddrinfo is an undefined reference
file P:/tmp\ldconv_libstream_out_standard_plugin_48c454704dac1660d0.obj(ldconv_libstream_out_standard_plugin_48c454704dac1660d0.obj): undefined symbol _freeaddrinfo
-----
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
12 years ago
KO Myung-Hun
5064767f8e
compat: poll: fix compilation
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Rémi Denis-Courmont
5ac516c9c7
poll: deal with invalid file descriptors more like specified
12 years ago
Rémi Denis-Courmont
c4199ab677
Remove inconsistently used HAVE_UNISTD_H
13 years ago
Felix Abecassis
a580223d2c
network: undef EAFNOSUPPORT before overriding it.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
13 years ago
Rafaël Carré
6d53362001
Use _WIN32 rather than WIN32 (same for WIN64)
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx only
mentions the _ prefixed variable.
gcc will always define the _ prefixed variable, like Visual Studio.
The prefixless one is defined in some language standards, e.g. gnu99
but not c99.
13 years ago
Rafaël Carré
f5e991c748
Remove untested strncasecmp replacement
Since it never built, it was never needed on any platform
14 years ago
Rémi Denis-Courmont
82e41d14d7
Win32: try to fix build on some Mingw versions
14 years ago
Rémi Denis-Courmont
2f8990294e
Win32: correctly implement flockfile() et al
This should fix gibberish interlaced log messages.
14 years ago
Rémi Denis-Courmont
294f9cc858
compat: (pretend to) implement getpid() on NaCl
14 years ago
Rémi Denis-Courmont
a7b2dcf0ee
Remove WinCE
14 years ago
Rémi Denis-Courmont
c05b7fdf1e
gmtime_r: rewrite, now truly thread-safe
15 years ago
Rémi Denis-Courmont
7222ec2719
Fix MacOS compilation (probably)
15 years ago
Rémi Denis-Courmont
66b102008a
Replace posix_memalign()
15 years ago