100-compile_fix.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. diff -ur util-linux.old/fdisk/llseek.c util-linux.dev/fdisk/llseek.c
  2. --- util-linux.old/fdisk/llseek.c 2003-07-13 23:13:33.000000000 +0200
  3. +++ util-linux.dev/fdisk/llseek.c 2006-12-14 23:06:12.000000000 +0100
  4. @@ -29,13 +29,7 @@
  5. static int _llseek (unsigned int, unsigned long,
  6. unsigned long, long long *, unsigned int);
  7. -#ifdef __NR__llseek
  8. -
  9. -static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
  10. - unsigned long, offset_low,long long *,result,
  11. - unsigned int, origin)
  12. -
  13. -#else
  14. +#ifndef __NR__llseek
  15. /* no __NR__llseek on compilation machine - might give it explicitly */
  16. static int _llseek (unsigned int fd, unsigned long oh,
  17. diff -ur util-linux.old/fdisk/sfdisk.c util-linux.dev/fdisk/sfdisk.c
  18. --- util-linux.old/fdisk/sfdisk.c 2005-01-04 23:31:57.000000000 +0100
  19. +++ util-linux.dev/fdisk/sfdisk.c 2006-12-14 23:05:41.000000000 +0100
  20. @@ -176,12 +176,6 @@
  21. #define use_lseek
  22. #endif
  23. -#ifndef use_lseek
  24. -static __attribute__used
  25. -_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
  26. - loff_t *, res, unsigned int, wh);
  27. -#endif
  28. -
  29. static int
  30. sseek(char *dev, unsigned int fd, unsigned long s) {
  31. loff_t in, out;
  32. diff -ur util-linux.old/partx/partx.c util-linux.dev/partx/partx.c
  33. --- util-linux.old/partx/partx.c 2004-08-23 22:13:27.000000000 +0200
  34. +++ util-linux.dev/partx/partx.c 2006-12-14 23:06:42.000000000 +0100
  35. @@ -339,9 +339,6 @@
  36. #ifdef NEED__llseek
  37. #include <linux/unistd.h> /* _syscall */
  38. -static
  39. -_syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
  40. - long long *, res, uint, wh);
  41. #endif
  42. static int