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.

40 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../flex/flex-2.5.35-gcc44-1.patch
  5. # Copyright (C) 2010 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. Submitted by: Matt Burgess (matthew at linuxfromscratch dot org)
  17. Date: 2009-05-03
  18. Initial Package Version: 2.5.35
  19. Origin: Matt Burgess
  20. Upstream Status: Submitted (attached to sourceforge bug 2178663)
  21. Description: Fixes an error caused by header cleanups in GCC 4.4.0 that is
  22. evident from the test suite and would affect any C++ lexers
  23. generated by Flex. Without this patch, Flex will generate lexers
  24. containing references to the 'EOF' symbol without including the
  25. necessary C++ header file, leading to:
  26. error: 'EOF' was not declared in this scope
  27. diff -Naur flex-2.5.35.orig/skel.c flex-2.5.35/skel.c
  28. --- flex-2.5.35.orig/skel.c 2008-02-26 21:34:19.000000000 +0000
  29. +++ flex-2.5.35/skel.c 2009-05-03 15:18:14.000000000 +0000
  30. @@ -284,6 +284,7 @@
  31. "/* begin standard C++ headers. */",
  32. "#include <iostream> ",
  33. "#include <errno.h>",
  34. + "#include <cstdio>",
  35. "#include <cstdlib>",
  36. "#include <cstring>",
  37. "/* end standard C++ headers. */",