Don't need to include XDR headers in <guestfs.h>.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 11 Nov 2010 23:18:57 +0000 (23:18 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 11 Nov 2010 23:29:46 +0000 (23:29 +0000)
Include the XDR headers in the internal guestfs-internal.h instead.

This is knock-on effects to several other source files which
were implicitly relying on indirectly loaded headers.

fish/copy.c
fish/progress.c
fish/time.c
generator/generator_c.ml
generator/generator_fish.ml
src/guestfs-internal.h

index f5edad1..9f3f3df 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
index f196786..27dfbec 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <inttypes.h>
 #include <math.h>
+#include <sys/time.h>
 
 #include <guestfs.h>
 
index 48cf100..931403f 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/time.h>
 
 #include "fish.h"
 
index caf73c3..0194e0c 100644 (file)
@@ -360,10 +360,9 @@ and generate_guestfs_h () =
 extern \"C\" {
 #endif
 
+#include <stddef.h>
 #include <stdint.h>
 #include <stdarg.h>
-#include <rpc/types.h>
-#include <rpc/xdr.h>
 
 /* The handle. */
 #ifndef GUESTFS_TYPEDEF_H
index f59c520..0c81dfc 100644 (file)
@@ -909,6 +909,8 @@ and generate_fish_prep_options_c () =
   generate_header CStyle GPLv2plus;
 
   pr "\
+#include <stdio.h>
+
 #include \"fish.h\"
 #include \"prepopts.h\"
 
index f8b3e94..6dbbeec 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef GUESTFS_INTERNAL_H_
 #define GUESTFS_INTERNAL_H_
 
+#include <rpc/types.h>
+#include <rpc/xdr.h>
+
 #ifdef HAVE_PCRE
 #include <pcre.h>
 #endif