ff_socket: put out-of-line and fallback to fcntl() for close-on-exec
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Aug 2013 19:26:42 +0000 (22:26 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 9 Aug 2013 08:26:50 +0000 (11:26 +0300)
commit9d5ec50ead97e088d77317e77b18cef06cb3d053
tree7e5fc7b137bd4afcc4a221eb0d426e0e7ceaf755
parentfa09e76010b7db5ae0c7af9b7412096359ecd8c8
ff_socket: put out-of-line and fallback to fcntl() for close-on-exec

This supports non-Linux systems (SOCK_CLOEXEC is non-standard) and
older Linux kernels to the extent possible.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/network.c
libavformat/network.h