[Libguestfs] [PATCH 2/6] daemon: Missing #includes revealed by cross-compiling.

Richard W.M. Jones rjones at redhat.com
Fri Nov 20 10:52:52 UTC 2009


-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From 688bdc1a068a6c0bea58addd04d5bbe6dc1940c4 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Fri, 20 Nov 2009 10:36:21 +0000
Subject: [PATCH 2/6] daemon: Missing #includes revealed by cross-compiling.

---
 daemon/ext2.c   |    1 +
 daemon/fill.c   |    1 +
 daemon/find.c   |    1 +
 daemon/initrd.c |    1 +
 4 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/daemon/ext2.c b/daemon/ext2.c
index f768440..f46bac9 100644
--- a/daemon/ext2.c
+++ b/daemon/ext2.c
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 
 #include "../src/guestfs_protocol.h"
diff --git a/daemon/fill.c b/daemon/fill.c
index b1b0f5e..9551502 100644
--- a/daemon/fill.c
+++ b/daemon/fill.c
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
 
diff --git a/daemon/find.c b/daemon/find.c
index 98895ab..391b87b 100644
--- a/daemon/find.c
+++ b/daemon/find.c
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <sys/stat.h>
 
 #include "../src/guestfs_protocol.h"
diff --git a/daemon/initrd.c b/daemon/initrd.c
index 9431ef1..9c92fee 100644
--- a/daemon/initrd.c
+++ b/daemon/initrd.c
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 #include <unistd.h>
 
 #include "../src/guestfs_protocol.h"
-- 
1.6.5.2



More information about the Libguestfs mailing list