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.

83 lines
2.8 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./src/db-XXX.c.orig 2003-05-03 08:46:16.000000000 +0200
  23. +++ ./src/db-XXX.c 2003-05-03 08:46:21.000000000 +0200
  24. @@ -17,6 +17,10 @@
  25. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  26. Boston, MA 02111-1307, USA. */
  27. +#include <features.h>
  28. +#define NOT_IN_libc
  29. +#define _LIBC
  30. +
  31. #include <alloca.h>
  32. #include <ctype.h>
  33. #include <db.h>
  34. --- ./src/db-alias.c.orig 2003-05-03 08:40:34.000000000 +0200
  35. +++ ./src/db-alias.c 2003-05-03 08:45:34.000000000 +0200
  36. @@ -18,6 +18,10 @@
  37. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  38. Boston, MA 02111-1307, USA. */
  39. +#include <features.h>
  40. +#define NOT_IN_libc
  41. +#define _LIBC
  42. +
  43. #include <aliases.h>
  44. #include <alloca.h>
  45. #include <ctype.h>
  46. --- ./src/db-netgrp.c.orig 2003-05-03 08:46:33.000000000 +0200
  47. +++ ./src/db-netgrp.c 2003-05-03 08:46:39.000000000 +0200
  48. @@ -18,6 +18,10 @@
  49. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  50. Boston, MA 02111-1307, USA. */
  51. +#include <features.h>
  52. +#define NOT_IN_libc
  53. +#define _LIBC
  54. +
  55. #include <errno.h>
  56. #include <fcntl.h>
  57. #include <netgroup.h>
  58. --- ./src/makedb.c.orig 2003-05-03 08:47:21.000000000 +0200
  59. +++ ./src/makedb.c 2003-05-03 08:48:09.000000000 +0200
  60. @@ -18,6 +18,8 @@
  61. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  62. Boston, MA 02111-1307, USA. */
  63. +#define _GNU_SOURCE
  64. +
  65. #ifdef HAVE_CONFIG_H
  66. # include <config.h>
  67. #endif
  68. --- ./src/Makefile.in.orig 2003-05-03 08:49:38.000000000 +0200
  69. +++ ./src/Makefile.in 2003-05-03 08:49:49.000000000 +0200
  70. @@ -105,7 +105,7 @@
  71. noinst_HEADERS = db-compat.h netgroup.h nss_db.h
  72. -INCLUDES = @DB_CFLAGS@ -D_LIBC -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  73. +INCLUDES = @DB_CFLAGS@ -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  74. EXTRA_DIST = libnss_db.map