1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/package/mtd-uils/patches/138-mkfs.ubifs-fix-build-fail.patch
2022-11-27 10:16:14 +00:00

17 lines
502 B
Diff

Index: mtd-utils-1.4.5/mkfs.ubifs/mkfs.ubifs.h
===================================================================
--- mtd-utils-1.4.5.orig/mkfs.ubifs/mkfs.ubifs.h 2014-05-07 16:54:06.318103764 +0800
+++ mtd-utils-1.4.5/mkfs.ubifs/mkfs.ubifs.h 2014-05-07 16:55:33.351846587 +0800
@@ -36,6 +36,11 @@
#include <linux/types.h>
#ifdef __linux__
#include <linux/fs.h>
+
+#if defined(__UCLIBC__) && !defined(llseek)
+# define llseek lseek64
+#endif
+
#else
# ifndef O_LARGEFILE
# define O_LARGEFILE 0