diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2006-10-25 13:58:30 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2006-10-25 13:58:30 +0100 |
commit | c957115a57ccc35365571c1950ef903fab95a434 (patch) | |
tree | 35361951f6d2d28d34ddc4370d9b206408842ff7 /unmodified_drivers/linux-2.6/compat-include | |
parent | 6b8b36040d478d336d3c93e87dec37594cc64a79 (diff) | |
download | xen-c957115a57ccc35365571c1950ef903fab95a434.tar.gz xen-c957115a57ccc35365571c1950ef903fab95a434.tar.bz2 xen-c957115a57ccc35365571c1950ef903fab95a434.zip |
PV-to-HVM: Implement compatibility nonseekable_open as a nop on
kernels before 2.6.9
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/compat-include')
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index cccdabf258..191777a8ff 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -25,4 +25,8 @@ #define NET_IP_ALIGN 0 #endif +#if defined(_LINUX_FS_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) +#define nonseekable_open(inode, filp) /* Nothing to do */ +#endif + #endif |