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.

33 lines
1.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../plptools/64bit-int-fix.patch
  5. # Copyright (C) 2004 - 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. Some 64bit compile fixes. Plpftp works on x86-64, plpnfsd not.
  17. diff -Naur plptools-0.12.orig/include/plp_inttypes.h plptools-0.12/include/plp_inttypes.h
  18. --- plptools-0.12.orig/include/plp_inttypes.h 2002-02-14 20:56:41.000000000 +0200
  19. +++ plptools-0.12/include/plp_inttypes.h 2005-03-24 20:59:34.822833400 +0200
  20. @@ -27,7 +27,11 @@
  21. typedef unsigned char u_int8_t;
  22. typedef unsigned short u_int16_t;
  23. typedef unsigned int u_int32_t;
  24. +#ifdef __x86_64__
  25. +typedef long unsigned int u_int64_t;
  26. +#else
  27. typedef unsigned long long u_int64_t;
  28. +#endif
  29. typedef signed long long s_int64_t;
  30. #endif // ISO_INTTYPES
  31. #endif // GNU_INTTYPES