fix-vboxsf-build-error-for-rhel6.patch
Building the vboxsf module fails on RHEL-6 guest.
/vboxsf/vfsmod.c: In function ‘sf_show_options’:
/vboxsf/vfsmod.c:509: error: dereferencing pointer to incomplete type
/vboxsf/vfsmod.c:515: error: implicit declaration of function ‘seq_printf’
/vboxsf/vfsmod.c:518: error: implicit declaration of function ‘seq_puts’
/vboxsf/vfsmod.c:519: error: implicit declaration of function ‘seq_escape’
This is due to missing header files.
Written-by Pablo Greco <pablo@fliagreco.com.ar>
Tested-by Akemi Yagi <toracat@elrepo.org>
diff --git a/vboxsf/vfsmod.c b/vboxsf/vfsmod.c
index 58305d6..0f85571 100644
|
a
|
b
|
|
| 46 | 46 | #include "revision-generated.h" |
| 47 | 47 | #include "product-generated.h" |
| 48 | 48 | #include "VBoxGuestR0LibInternal.h" |
| | 49 | #include <linux/mount.h> |
| | 50 | #include <linux/seq_file.h> |
| 49 | 51 | |
| 50 | 52 | MODULE_DESCRIPTION(VBOX_PRODUCT " VFS Module for Host File System Access"); |
| 51 | 53 | MODULE_AUTHOR(VBOX_VENDOR); |