Pino Toscano
2015-Oct-05 14:10 UTC
[Libguestfs] [PATCH] lib: include <sys/socket.h> for accept4
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> -- 2.1.0
Richard W.M. Jones
2015-Oct-05 14:33 UTC
Re: [Libguestfs] [PATCH] lib: include <sys/socket.h> for accept4
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
Reasonably Related Threads
- [klibc:master] Add accept4(), handle fallback from accept () to accept4()
- [PATCH 1/4] lib: actions: Remove some unused header files.
- [PATCH] build: remove unused gnulib modules
- [PATCH] launch: add missing headers on Darwin
- [PATCH v2 0/5] remove unused gnulib modules