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.

29 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/electricfence-uclibc.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- electric-fence-2.1.13/page.c.orig 2001-04-11 07:44:04.000000000 -0700
  18. +++ electric-fence-2.1.13/page.c 2005-01-21 22:52:00.000000000 -0800
  19. @@ -42,8 +42,8 @@
  20. #elif ( defined(_AIX) )
  21. return strerror(errno);
  22. #else
  23. - if ( errno > 0 && errno < sys_nerr )
  24. - return sys_errlist[errno];
  25. + if ( errno > 0 && strerror(errno) != NULL)
  26. + return strerror(errno);
  27. else
  28. return "Unknown error.\n";
  29. #endif