vbox-guest

This commit is contained in:
milisbir 2018-11-25 15:27:07 +02:00
parent 601d865240
commit a20aee24fd
2 changed files with 1 additions and 30 deletions

View File

@ -1,27 +0,0 @@
diff -Naru 1/vboxsf/utils.c 2/vboxsf/utils.c
--- 1/vboxsf/utils.c 2018-08-13 21:58:52.000000000 +0700
+++ 2/vboxsf/utils.c 2018-08-13 22:06:59.623300208 +0700
@@ -50,7 +50,11 @@
RTTimeSpecSetNano(ts, t);
}
#else /* >= 2.6.0 */
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0))
static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
+#else
+static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts)
+#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0))
{
int64_t t = RTTimeSpecGetNano(ts);
int64_t nsec;
@@ -60,7 +64,11 @@
tv->tv_nsec = nsec;
}
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0))
static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv)
+#else
+static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv)
+#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0))
{
int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000;
RTTimeSpecSetNano(ts, t);

View File

@ -7,13 +7,11 @@
isim=virtualbox-guest-modules
surum=5.2.22
devir=1
kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-$surum.tar.xz
fix-timespec.patch)
kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-$surum.tar.xz)
derle() {
_kernver="`ls /lib/modules`"
cd $SRC/vbox-guest-module-src-${surum}
patch -p1 < "${SRC}/fix-timespec.patch"
make -j1 KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \
MODULE_DIR=${PKG}/lib/modules/${_kernver}/misc
cd $SRC/vbox-guest-module-src-${surum}