aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_netbsd.c
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2012-01-13 16:54:19 +0000
committerIan Jackson <ian.jackson@eu.citrix.com>2012-01-13 16:54:19 +0000
commit8fc051a10f0df8e0030b2d6cbddb720f4322c7d3 (patch)
treeb084dd44fc9703591febed56091b8c6429520298 /tools/libxl/libxl_netbsd.c
parent3607a75236b37abe350bf52f4700355be963a60d (diff)
downloadxen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.tar.gz
xen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.tar.bz2
xen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.zip
libxl: move a lot more includes into libxl_internal.h
Move a lot of #include <stdfoo.h> from individual files into libxl_internal.h. This helps avoid portability mistakes where necessary system headers are omitted from individual files, and is also of course a convenience when developing. Also add #include "libxl_osdeps.h" /* must come before any other headers */ to the top of most libxl*.c files, so that anyone who adds any headers before libxl_internal.h will put the in the right place. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_netbsd.c')
-rw-r--r--tools/libxl/libxl_netbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_netbsd.c b/tools/libxl/libxl_netbsd.c
index 1e8d622835..9e0ed6d952 100644
--- a/tools/libxl/libxl_netbsd.c
+++ b/tools/libxl/libxl_netbsd.c
@@ -13,7 +13,7 @@
* GNU Lesser General Public License for more details.
*/
-#include <sys/stat.h>
+#include "libxl_osdeps.h" /* must come before any other headers */
#include "libxl_internal.h"