summaryrefslogtreecommitdiff
path: root/package/util-linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-14 22:09:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-14 22:09:04 +0000
commit6f2d44bf3868a556428addd7efd218e28c8ca7b1 (patch)
tree76e3da9195555de3e03979916efa972b8b9e81b9 /package/util-linux
parenta31e5500bf97bd9f900ba78e87f3239f1b118da4 (diff)
downloadmtk-20170518-6f2d44bf3868a556428addd7efd218e28c8ca7b1.zip
mtk-20170518-6f2d44bf3868a556428addd7efd218e28c8ca7b1.tar.gz
mtk-20170518-6f2d44bf3868a556428addd7efd218e28c8ca7b1.tar.bz2
fix util-linux compile
SVN-Revision: 5795
Diffstat (limited to 'package/util-linux')
-rw-r--r--package/util-linux/patches/100-compile_fix.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/util-linux/patches/100-compile_fix.patch b/package/util-linux/patches/100-compile_fix.patch
new file mode 100644
index 0000000..ed5bfa6
--- /dev/null
+++ b/package/util-linux/patches/100-compile_fix.patch
@@ -0,0 +1,47 @@
+diff -ur util-linux.old/fdisk/llseek.c util-linux.dev/fdisk/llseek.c
+--- util-linux.old/fdisk/llseek.c 2003-07-13 23:13:33.000000000 +0200
++++ util-linux.dev/fdisk/llseek.c 2006-12-14 23:06:12.000000000 +0100
+@@ -29,13 +29,7 @@
+ static int _llseek (unsigned int, unsigned long,
+ unsigned long, long long *, unsigned int);
+
+-#ifdef __NR__llseek
+-
+-static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
+- unsigned long, offset_low,long long *,result,
+- unsigned int, origin)
+-
+-#else
++#ifndef __NR__llseek
+
+ /* no __NR__llseek on compilation machine - might give it explicitly */
+ static int _llseek (unsigned int fd, unsigned long oh,
+diff -ur util-linux.old/fdisk/sfdisk.c util-linux.dev/fdisk/sfdisk.c
+--- util-linux.old/fdisk/sfdisk.c 2005-01-04 23:31:57.000000000 +0100
++++ util-linux.dev/fdisk/sfdisk.c 2006-12-14 23:05:41.000000000 +0100
+@@ -176,12 +176,6 @@
+ #define use_lseek
+ #endif
+
+-#ifndef use_lseek
+-static __attribute__used
+-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
+- loff_t *, res, unsigned int, wh);
+-#endif
+-
+ static int
+ sseek(char *dev, unsigned int fd, unsigned long s) {
+ loff_t in, out;
+diff -ur util-linux.old/partx/partx.c util-linux.dev/partx/partx.c
+--- util-linux.old/partx/partx.c 2004-08-23 22:13:27.000000000 +0200
++++ util-linux.dev/partx/partx.c 2006-12-14 23:06:42.000000000 +0100
+@@ -339,9 +339,6 @@
+
+ #ifdef NEED__llseek
+ #include <linux/unistd.h> /* _syscall */
+-static
+-_syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
+- long long *, res, uint, wh);
+ #endif
+
+ static int