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.

78 lines
2.5 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../nssdb/libc_hacks.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./src/db-XXX.c.orig 2003-05-03 08:46:16.000000000 +0200
  18. +++ ./src/db-XXX.c 2003-05-03 08:46:21.000000000 +0200
  19. @@ -17,6 +17,10 @@
  20. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21. Boston, MA 02111-1307, USA. */
  22. +#include <features.h>
  23. +#define NOT_IN_libc
  24. +#define _LIBC
  25. +
  26. #include <alloca.h>
  27. #include <ctype.h>
  28. #include <db.h>
  29. --- ./src/db-alias.c.orig 2003-05-03 08:40:34.000000000 +0200
  30. +++ ./src/db-alias.c 2003-05-03 08:45:34.000000000 +0200
  31. @@ -18,6 +18,10 @@
  32. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  33. Boston, MA 02111-1307, USA. */
  34. +#include <features.h>
  35. +#define NOT_IN_libc
  36. +#define _LIBC
  37. +
  38. #include <aliases.h>
  39. #include <alloca.h>
  40. #include <ctype.h>
  41. --- ./src/db-netgrp.c.orig 2003-05-03 08:46:33.000000000 +0200
  42. +++ ./src/db-netgrp.c 2003-05-03 08:46:39.000000000 +0200
  43. @@ -18,6 +18,10 @@
  44. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  45. Boston, MA 02111-1307, USA. */
  46. +#include <features.h>
  47. +#define NOT_IN_libc
  48. +#define _LIBC
  49. +
  50. #include <errno.h>
  51. #include <fcntl.h>
  52. #include <netgroup.h>
  53. --- ./src/makedb.c.orig 2003-05-03 08:47:21.000000000 +0200
  54. +++ ./src/makedb.c 2003-05-03 08:48:09.000000000 +0200
  55. @@ -18,6 +18,8 @@
  56. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  57. Boston, MA 02111-1307, USA. */
  58. +#define _GNU_SOURCE
  59. +
  60. #ifdef HAVE_CONFIG_H
  61. # include <config.h>
  62. #endif
  63. --- ./src/Makefile.in.orig 2003-05-03 08:49:38.000000000 +0200
  64. +++ ./src/Makefile.in 2003-05-03 08:49:49.000000000 +0200
  65. @@ -105,7 +105,7 @@
  66. noinst_HEADERS = db-compat.h netgroup.h nss_db.h
  67. -INCLUDES = @DB_CFLAGS@ -D_LIBC -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  68. +INCLUDES = @DB_CFLAGS@ -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
  69. EXTRA_DIST = libnss_db.map