diff options
Diffstat (limited to 'modutils/modutils.h')
-rw-r--r-- | modutils/modutils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modutils/modutils.h b/modutils/modutils.h index 1cf4bba..131a508 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h @@ -51,6 +51,12 @@ enum { #endif }; +#if ENABLE_FEATURE_INSMOD_TRY_MMAP +void* FAST_FUNC try_to_mmap_module(const char *filename, size_t *image_size_p); +#else +# define try_to_mmap_module(filename, image_size) NULL +#endif + /* Return: * 0 on success, * -errno on open/read error, |