Displaying 4 results from an estimated 4 matches for "5cce9c1".
2015 Nov 04
3
[PATCH] launch: add missing headers on Darwin
...+++ b/src/launch-libvirt.c
@@ -52,6 +52,7 @@
/* Fixes for Mac OS X */
#if defined __APPLE__ && defined __MACH__
#include <sys/un.h>
+#include <sys/fcntl.h>
#endif
#ifndef SOCK_CLOEXEC
# define SOCK_CLOEXEC O_CLOEXEC
diff --git a/src/launch-unix.c b/src/launch-unix.c
index 5cce9c1..f57910d 100644
--- a/src/launch-unix.c
+++ b/src/launch-unix.c
@@ -25,6 +25,10 @@
#include <string.h>
#include <libintl.h>
+#if defined __APPLE__ && defined __MACH__
+#include <sys/un.h>
+#endif
+
#include "guestfs.h"
#include "guestfs-internal.h"...
2015 Nov 04
0
Re: [PATCH] launch: add missing headers on Darwin
...> /* Fixes for Mac OS X */
> #if defined __APPLE__ && defined __MACH__
> #include <sys/un.h>
> +#include <sys/fcntl.h>
> #endif
> #ifndef SOCK_CLOEXEC
> # define SOCK_CLOEXEC O_CLOEXEC
> diff --git a/src/launch-unix.c b/src/launch-unix.c
> index 5cce9c1..f57910d 100644
> --- a/src/launch-unix.c
> +++ b/src/launch-unix.c
> @@ -25,6 +25,10 @@
> #include <string.h>
> #include <libintl.h>
>
> +#if defined __APPLE__ && defined __MACH__
> +#include <sys/un.h>
> +#endif
> +
> #include "...
2015 Sep 29
0
[PATCH 4/4] lib: Remove unused header files.
...clude <sys/wait.h>
@@ -36,7 +34,6 @@
#include "guestfs.h"
#include "guestfs-internal.h"
-#include "guestfs-internal-actions.h"
#include "guestfs_protocol.h"
/* Per-handle data. */
diff --git a/src/launch-unix.c b/src/launch-unix.c
index 1dac58e..5cce9c1 100644
--- a/src/launch-unix.c
+++ b/src/launch-unix.c
@@ -21,15 +21,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <fcntl.h>
#include <sys/socket.h>
-#include <sys/un.h>
#include <string.h>
#include <libintl.h>
#i...
2015 Sep 29
8
[PATCH 1/4] lib: actions: Remove some unused header files.
---
generator/c.ml | 2 --
1 file changed, 2 deletions(-)
diff --git a/generator/c.ml b/generator/c.ml
index 055b683..963cf21 100644
--- a/generator/c.ml
+++ b/generator/c.ml
@@ -1213,9 +1213,7 @@ and generate_client_actions hash () =
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#include