[Libguestfs] [PATCH] lib: include <sys/socket.h> for accept4
Richard W.M. Jones
rjones at redhat.com
Mon Oct 5 14:33:28 UTC 2015
On Mon, Oct 05, 2015 at 04:10:47PM +0200, Pino Toscano wrote:
> Apparently implicitly pulled by something else on Linux, it is not when
> building on e.g. FreeBSD.
>
> This reverts the change to this file of
> commit 3b17152ec399acb35b23331d2c3b4f424a68824a.
> ---
> src/conn-socket.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/conn-socket.c b/src/conn-socket.c
> index a935cc4..05177ca 100644
> --- a/src/conn-socket.c
> +++ b/src/conn-socket.c
> @@ -28,6 +28,7 @@
> #include <errno.h>
> #include <poll.h>
> #include <sys/stat.h>
> +#include <sys/socket.h> /* accept4 */
> #include <sys/types.h>
> #include <assert.h>
> #include <libintl.h>
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
More information about the Libguestfs
mailing list