OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sfdisk/sfdisk.005.no-llseek-fix.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Imported from buildroot
  17. http://git.uclibc.org/buildroot/tree/package/sfdisk
  18. --- sfdisk_vanilla/sfdisk.c 2004-01-13 13:03:11.000000000 +0000
  19. +++ sfdisk_llseek-fix/sfdisk.c 2008-04-17 08:42:35.000000000 +0000
  20. @@ -134,9 +137,17 @@
  21. * Note: we use 512-byte sectors here, irrespective of the hardware ss.
  22. */
  23. #if defined(__linux__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__)
  24. +#if defined(_llseek)
  25. static
  26. _syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
  27. loff_t *, res, unsigned int, wh);
  28. +#else
  29. +static int _llseek (unsigned int fd, unsigned long oh,
  30. + unsigned long ol, long long *result,
  31. + unsigned int origin) {
  32. + return syscall (__NR__llseek, fd, oh, ol, result, origin);
  33. +#endif
  34. +}
  35. #endif
  36. static int