mirror of the now-defunct rocklinux.org
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.

80 lines
2.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/nssdb/libc_hacks.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./src/db-XXX.c.orig 2003-05-03 08:46:16.000000000 +0200
  20. +++ ./src/db-XXX.c 2003-05-03 08:46:21.000000000 +0200
  21. @@ -17,6 +17,10 @@
  22. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23. Boston, MA 02111-1307, USA. */
  24. +#include <features.h>
  25. +#define NOT_IN_libc
  26. +#define _LIBC
  27. +
  28. #include <alloca.h>
  29. #include <ctype.h>
  30. #include <db.h>
  31. --- ./src/db-alias.c.orig 2003-05-03 08:40:34.000000000 +0200
  32. +++ ./src/db-alias.c 2003-05-03 08:45:34.000000000 +0200
  33. @@ -18,6 +18,10 @@
  34. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  35. Boston, MA 02111-1307, USA. */
  36. +#include <features.h>
  37. +#define NOT_IN_libc
  38. +#define _LIBC
  39. +
  40. #include <aliases.h>
  41. #include <alloca.h>
  42. #include <ctype.h>
  43. --- ./src/db-netgrp.c.orig 2003-05-03 08:46:33.000000000 +0200
  44. +++ ./src/db-netgrp.c 2003-05-03 08:46:39.000000000 +0200
  45. @@ -18,6 +18,10 @@
  46. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  47. Boston, MA 02111-1307, USA. */
  48. +#include <features.h>
  49. +#define NOT_IN_libc
  50. +#define _LIBC
  51. +
  52. #include <errno.h>
  53. #include <fcntl.h>
  54. #include <netgroup.h>
  55. --- ./src/makedb.c.orig 2003-05-03 08:47:21.000000000 +0200
  56. +++ ./src/makedb.c 2003-05-03 08:48:09.000000000 +0200
  57. @@ -18,6 +18,8 @@
  58. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  59. Boston, MA 02111-1307, USA. */
  60. +#define _GNU_SOURCE
  61. +
  62. #ifdef HAVE_CONFIG_H
  63. # include <config.h>
  64. #endif
  65. --- ./src/Makefile.in.orig 2003-05-03 08:49:38.000000000 +0200
  66. +++ ./src/Makefile.in 2003-05-03 08:49:49.000000000 +0200
  67. @@ -105,7 +105,7 @@
  68. noinst_HEADERS = db-compat.h netgroup.h nss_db.h
  69. -INCLUDES = @DB_CFLAGS@ -D_LIBC -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  70. +INCLUDES = @DB_CFLAGS@ -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  71. EXTRA_DIST = libnss_db.map