From: Hauke Mehrtens Date: Tue, 2 Aug 2011 21:14:22 +0000 (+0200) Subject: compat: add linux/export.h X-Git-Tag: compat-2011-09-28~16 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bd69b9e6866c081d5bc968037681871fb7c905ea;p=~emulex%2Ffor-vlad%2Fcompat.git compat: add linux/export.h Export will be added in linux-3.2, for older kernel versions the stuff is in linux/module.h. Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/export.h b/include/linux/export.h new file mode 100644 index 0000000..f7842b7 --- /dev/null +++ b/include/linux/export.h @@ -0,0 +1,12 @@ +#ifndef _COMPAT_LINUX_EXPORT_H +#define _COMPAT_LINUX_EXPORT_H 1 + +#include + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) +#include_next +#else +#include +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) */ + +#endif /* _COMPAT_LINUX_EXPORT_H */