diff --git a/community/mce/0009-fix-lfs64-lseek.patch b/community/mce/0009-fix-lfs64-lseek.patch
new file mode 100644
index 0000000000000000000000000000000000000000..4d0c25ce23cebc8e3aa05feffa8b4de9a69b108d
--- /dev/null
+++ b/community/mce/0009-fix-lfs64-lseek.patch
@@ -0,0 +1,11 @@
+--- a/mce-io.c
++++ b/mce-io.c
+@@ -587,7 +587,7 @@
+ 		glib = TRUE;
+ 	}
+ 	/* ... kernel knows */
+-	if (lseek64(g_io_channel_unix_get_fd(self->iochan), 0, SEEK_CUR) != -1) {
++	if (lseek(g_io_channel_unix_get_fd(self->iochan), 0, SEEK_CUR) != -1) {
+ 		kernel = TRUE;
+ 	}
+ 	/* report the difference */
diff --git a/community/mce/APKBUILD b/community/mce/APKBUILD
index 51c8533ee733dc81821433dad34349d09d52847d..6429f89cb72e30160ccc8be9f2c32506cd359e1e 100644
--- a/community/mce/APKBUILD
+++ b/community/mce/APKBUILD
@@ -35,6 +35,7 @@ source="https://github.com/sailfishos/mce/archive/$pkgver/mce-$pkgver.tar.gz
 	0006-Ambient-Mode-Exit-ambient-mode-when-touch-is-detecte.patch
 	0007-powerkey-Also-suspend-on-palm-reports.patch
 	0008-fix-32bit-build.patch
+	0009-fix-lfs64-lseek.patch
 	mce.initd
 	mce.confd
 	"
@@ -81,6 +82,7 @@ b3a0c202679077ad40959fc447d5d7dab21dd7acb852084ed88ed27fb86f506c053c23ac56ecbc0c
 777d4e4d2229f16685208e644bfd9a5f121a73e7645c37f7366d3887a8a0228ed7a0d680d5aab875457f7fa65b26710e21690f5b990bc1749b5b2faf7c847902  0006-Ambient-Mode-Exit-ambient-mode-when-touch-is-detecte.patch
 039f03a014e9e3ee7193df3b3e1d046740ee62525608e8a63a241b365d2c42ba191b78c7eb9b43ff8de460e03f6ef6ee0aad5e1a3fcb7e9d5d61f34a660ebd4d  0007-powerkey-Also-suspend-on-palm-reports.patch
 ad76be70336bec361bfcb2cd664a627a26c1576d7acd98666f986d318ff1ac96e739696577381b99f5ff13febd62b497f9e5e7ee80c7ea1de02409c65d8a7a36  0008-fix-32bit-build.patch
+0f22d22df8a458b732ff9598edb2369ba92ab473b5f239e39f6a27ce9c7268756994f33af42c6b74b28a2d2143d210c3aa3fa12a6173704a20d22c447ad5c518  0009-fix-lfs64-lseek.patch
 b07d40a66fd9206b1e34164a0229b05456cbe268b4004045c8fda34742c40528c56c5f1cf81cbc4ba3662c20fcbcff4a8f8e00fc8fbb2ff7bb92e7ab125dd55b  mce.initd
 b841282b96110ec59a7aa539db0737327b09549d55c78dc4b2c3b28b4a6ad1facf015b3175cb6d3a38f13e47aa6314ef3dc1514a4e60dd653a97409ec54ba706  mce.confd
 "