From: Peter Dinda Date: Fri, 22 Jun 2012 21:29:02 +0000 (-0500) Subject: Compilation fixes for more recent kernels X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=51f1721ae74c6292a8575c6d27e4b043f1602903;p=palacios.releases.git Compilation fixes for more recent kernels --- diff --git a/linux_module/iface-file.c b/linux_module/iface-file.c index b770256..062a6d2 100644 --- a/linux_module/iface-file.c +++ b/linux_module/iface-file.c @@ -128,7 +128,7 @@ static int palacios_file_mkdir(const char * pathname, unsigned short perms, int struct nameidata nd; // I'm not 100% sure about the version here, but it was around this time that the API changed -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37) +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,38) ret = kern_path_parent(pathname, &nd); #else diff --git a/linux_usr/v3_user_host_dev.h b/linux_usr/v3_user_host_dev.h index b761773..91bbc73 100644 --- a/linux_usr/v3_user_host_dev.h +++ b/linux_usr/v3_user_host_dev.h @@ -2,6 +2,7 @@ #define _V3_USER_HOST_DEV_ #include +#include "v3_ctrl.h" #include "iface-host-dev.h" int v3_user_host_dev_rendezvous(char *vmdev, char *url); // returns devfd for use in poll/select diff --git a/linux_usr/v3_user_keyed_stream.h b/linux_usr/v3_user_keyed_stream.h index 23d5943..f3fd91c 100644 --- a/linux_usr/v3_user_keyed_stream.h +++ b/linux_usr/v3_user_keyed_stream.h @@ -4,6 +4,7 @@ #include #define sint64_t int64_t +#include "v3_ctrl.h" #include "iface-keyed-stream-user.h" int v3_user_keyed_stream_attach(char *dev, char *url);