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.

42 lines
1.5 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_pciutils.patch
  5. # Copyright (C) 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- ./lib/types.h.orig 2006-06-21 14:44:57.000000000 +0200
  17. +++ ./lib/types.h 2006-06-21 14:56:35.000000000 +0200
  18. @@ -15,9 +15,9 @@
  19. typedef unsigned __int16 u16;
  20. typedef unsigned __int32 u32;
  21. #else
  22. -typedef u_int8_t u8;
  23. -typedef u_int16_t u16;
  24. -typedef u_int32_t u32;
  25. +typedef uint8_t u8;
  26. +typedef uint16_t u16;
  27. +typedef uint32_t u32;
  28. #endif
  29. #ifdef PCI_HAVE_64BIT_ADDRESS
  30. --- ./lib/pread.h.orig 2006-06-21 14:59:19.000000000 +0200
  31. +++ ./lib/pread.h 2006-06-21 14:59:41.000000000 +0200
  32. @@ -12,7 +12,7 @@
  33. * don't define it.
  34. */
  35. -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0
  36. +#if (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0 || defined(__dietlibc__))
  37. /* glibc 2.1 or newer -> pread/pwrite supported automatically */
  38. #elif defined(i386) && defined(__GLIBC__)