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.

50 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dog/64bit-goodness.diff
  5. # Copyright (C) 2007 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. diff -ur dog-1.7/dog.c dog-1.7-64bit/dog.c
  17. This patch comes from Gentoo, author is the Gentoo maintainer of dog
  18. --- dog-1.7/dog.c 2000-06-21 18:04:43.000000000 +0200
  19. +++ dog-1.7-64bit/dog.c 2005-05-23 10:40:58.613766328 +0200
  20. @@ -38,22 +38,13 @@
  21. #include <limits.h>
  22. #include <netdb.h>
  23. -// this is fun
  24. -#if defined(__alpha)
  25. -#define uint16 unsigned short
  26. -#define int16 short
  27. -#define uint32 unsigned int
  28. -#define int32 int
  29. -#define uint64 unsigned long
  30. -#define int64 long
  31. -#else
  32. -#define uint16 unsigned short
  33. -#define int16 short
  34. -#define uint32 unsigned long
  35. -#define int32 long
  36. -#define uint64 unsigned long long
  37. -#define int64 long long
  38. -#endif
  39. +#define uint16 uint16_t
  40. +#define int16 int16_t
  41. +#define uint32 uint32_t
  42. +#define int32 int32_t
  43. +#define uint64 uint64_t
  44. +#define int64 int64_t
  45. +
  46. #if defined(__STDC__)
  47. #define __dog_signed signed
  48. #else