On Fri, Aug 02, 2013 at 11:30:13PM +0200, Luca Barbato wrote:
> --- a/configure
> +++ b/configure
> @@ -1884,6 +1885,7 @@ tcp_protocol_select="network"
>  tls_protocol_deps_any="openssl gnutls"
>  tls_protocol_select="tcp_protocol"
>  udp_protocol_select="network"
> +unix_protocol_select="network sys_un_h"

sys_un_h should be a _deps, not a _select.  If you --enable-protocol=unix
a sys/un.h header does not magically appear on the system.  Instead, you
only want to enable the Unix socket protocol when the sys/un.h header
is present.

> --- a/doc/protocols.texi
> +++ b/doc/protocols.texi
> @@ -626,4 +626,24 @@ To receive over UDP from a remote endpoint:
>  avconv -i udp://[@var{multicast-address}]:@var{port}
>  @end example
> 
> +@section unix
> +
> +Unix local socket
> +
> +The required syntax for a unix socket url is:

Unix, URL

> +@item listen
> +Create the unix socket in listening mode.

Unix

> --- /dev/null
> +++ b/libavformat/unix.c
> @@ -0,0 +1,166 @@
> +
> +/**
> + * @file
> + *
> + * unix url_protocol
> + *
> + * url syntax: unix://path/to/socket

Unix, URL

> +#include <sys/un.h>
> +
> +#include "config.h"
> +
> +#if HAVE_POLL_H
> +#include <poll.h>
> +#endif

What do you need this header for?  Maybe you should make it a _deps.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to