projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace kernel version macros
[lttng-modules.git]
/
wrapper
/
file.h
diff --git
a/wrapper/file.h
b/wrapper/file.h
index 2440745c67240269ac432641b50517ebe821bfc0..0454753812ccc1e1c72aa0ac2812b1793bd7cb9b 100644
(file)
--- a/
wrapper/file.h
+++ b/
wrapper/file.h
@@
-23,10
+23,10
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <l
inux/
version.h>
+#include <l
ttng-kernel-
version.h>
#include <linux/file.h>
#include <linux/file.h>
-#if L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,19,0)
+#if L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,19,0)
static
inline int lttng_get_unused_fd(void)
static
inline int lttng_get_unused_fd(void)
@@
-34,7
+34,9
@@
inline int lttng_get_unused_fd(void)
return get_unused_fd_flags(0);
}
return get_unused_fd_flags(0);
}
-#else /* #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */
+#define lttng_f_dentry f_path.dentry
+
+#else /* #if LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0) */
static
inline int lttng_get_unused_fd(void)
static
inline int lttng_get_unused_fd(void)
@@
-42,6
+44,8
@@
inline int lttng_get_unused_fd(void)
return get_unused_fd();
}
return get_unused_fd();
}
-#endif /* #else #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */
+#define lttng_f_dentry f_dentry
+
+#endif /* #else #if LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0) */
#endif /* _LTTNG_WRAPPER_FILE_H */
#endif /* _LTTNG_WRAPPER_FILE_H */
This page took
0.023206 seconds
and
4
git commands to generate.